Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to use axios

const [data, setData] = useState([]);
  const getApi = async () => {
    const url = await axios.get(
      "http://quencies.alshumaal.com/api/RCAs/getallRcas.php"
    );
    setData(url.data.getallRCAs);
  };
  useEffect(() => {
    getApi();
  }, []);
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #axios
ADD COMMENT
Topic
Name
6+5 =