We have to run two servers if we want to use React App as a SPA server and use Django app as an APIs server. What if we only want to launch one server on the machine?
This article is a note to solve this problem. One of the ways to connect the React App and Django App is to render the React page from the Django server.
Please refer to my article. It includes two parts.
1.Initialize Django App and React App
2.Connect CRA(React App) with Django App
Please refer to my repository.
There are some of my articles. Feel free to check if you like!