+ 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 ?
5 Respostas
+ 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
+ 2
Like this :
https://code.sololearn.com/W68LRMG8xig6/?ref=app
+ 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
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.