I just started to learn and practice ReactJS. however, when I first set up ReactJS along with the npm and node.js it worked fine. But today, whenever I want to access the index.js (a sample code from my-app for React) it just outputs the text in my browser. I have tried reinstalling both VS Code and Live Server Extension and still doesn't work.
CodePudding user response:
Inside your project file, you just need to run:
npm i
npm start