Demo for this article - https://dev.to/kozlovzxc/django-templates-with-react-4hko

Installation

Order of installation can be any.

Django

You will need pipenv.

pipenv install

React

You will need yarn.

cd assets
yarn

Usage

You need to build React first, so Django can serve built files.

React

First terminal tab:

cd assets
yarn parcel watch src/index.tsx

Django

Second terminal tab:

pipenv run python manage.py runserver