Can't fetch data using react from django rest framework generated api This link provides me an API at my localhost. The API is generated by Django Rest Framework. Now I wish to use the API data in my ReacJS application. To do that I followed the way below:

const [additionalSkills, setAdditionalSkills]= useState([]);
    useEffect(() =>{
        .then(data=> {

The API is getting generated well but when I try to fetch data using the API from my React app, the React app gets collapsed. Help me to slove it.

Back to Top