I am writing the following in my React code:
var React = require('react');
I followed the React setup from tutorialspoint. I installed all the things at /Desktop/reactApp/.
The React code is being run from /GitProjects/DjangoProjects/MyProj/MyApp/static/react/dashboard.js. I keep on getting the error Uncaught ReferenceError. Am I missing something?
Note: HTML file at /GitProjects/DjangoProjects/MyProj/MyApp/templates/dashboard.html is calling my dashboard.js code.