Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

fetch api


  const RcaApi = async () => {
    const url = await fetch(
      "http://quencies.alshumaal.com/api/RCAs/getallRcas.php"
    );
    const data = await url.json();
    setFetchData(data.getallRCAs);
  };
  useEffect(() => {
    RcaApi();
  }, [setFetchData]);
Source by careerfoundry.com #
 
PREVIOUS NEXT
Tagged: #fetch #api
ADD COMMENT
Topic
Name
6+3 =