Search code examples
node.jsreactjsdjangoserver

How we can connect react js with django?


How we can connect react js with django without installing node js?

Code of connect django with react without install nodejs server


Solution

  • You can create APIs in your Django backend and hit those APIs with fetch in your react application and can interact with the Django server.

    You can also install the django-webpack-loader package, which will help you integrate React with Django.

    In your Django application settings include the django-webpack-loader package and configure it to point to your React application.