+ 1

Can I use react without NodeJS ?

I wanna use my React app with Django. So is there any way to compile my React app into a deployable project ?

5th Sep 2020, 1:26 PM
Mahmud Oyshik
Mahmud Oyshik - avatar
4 Answers
+ 2
you can use the umd build directly in browser, you can find it here https://cdnjs.com/libraries/react https://cdnjs.com/libraries/react-dom its not bad for learning and prototyping, but for a real project consider installing npm
5th Sep 2020, 2:12 PM
Rei
Rei - avatar
5th Sep 2020, 4:10 PM
Gordon
Gordon - avatar
+ 1
Maharnab But if I just copy my React app to the server it doesn't work . It says that it requires npm which comes with NodeJS
5th Sep 2020, 1:36 PM
Mahmud Oyshik
Mahmud Oyshik - avatar
0
React and Django are more or less mutually exclusive. The reason being that React renders html client side while Django renders HTML server side. Instead of pairing Django with React you should use a SPA framework designed to work with server side rendering. For example WebRocketX.
29th Mar 2024, 6:31 PM
Matthew Keller
Matthew Keller - avatar