Django will be responsible for serving the API built using Django REST framework and React will consume these APIs using the Axios client or the browser’s fetch API . You’ll need to have two servers, both in development and production, one for Django(REST API) and the other for React (to serve static files).
Read moreCan I use React for frontend and Django for backend?
Notice that the URL is now http://127.0.0.1:8000. We have successfully connected our Django backend to a react frontend. You will need the Django REST framework to create the APIs the react frontend application will make use of to get backend data.9 Kas 2021
Read more