This is a sample project that demonstrate how ReactJS
could be use as a frontend on Django
with the help of webpack
.
A complete guide could be found here:
- Part One - Guide on using ReactJS with Django
- Part Two - Displaying ReactJS app in Django
- Part Three - Hot loading a ReactJS app in Django
We would be able to achieve this:
Checkout the correct branch to start:
$ git clone -b start [email protected]:Zaccc123/react-django.git #start of part1
$ git clone -b part2 [email protected]:Zaccc123/react-django.git #start of part2
$ git clone -b part3 [email protected]:Zaccc123/react-django.git #start of part3
To run the complete project, just checkout the master branch and do this:
$ git clone [email protected]:Zaccc123/react-django.git
$ npm run watch
$ python manage.py rumserver #on another session
I have also use the exact same setup to create a iOS App Landing page.