Want to set up a local development environment for React.JS? Then this is the blog for you.
This blog is for MAC and WINDOWS users.
First, open your terminal and type
Check if it Matches with the Node.JS website:
For this tutorial, I will be downloading Visual Studio Code because it is much easier to develop React Applications. If you would like to use another text editor, feel free to do so.
Head over to Visual Studio Code's website and choose the operating system that you use
Then, wait for some time for the ZIP file to download.
After the ZIP file is completed downloading, double click on it.
It will take a couple of seconds to do so.
After that, Drag VSCode to your Applications Folder.
Open a terminal and type the following:
$ npx create-react-app my-app
This will take a few minutes, so grab a cup of tea or coffee :)
If it is successful, you should get an image like this. If not, comment down in this blog post.
cd into the directory by using:
$ cd my-app
Now, open it in VSCode by using
$ code .
It should look something like this:
Then, use the command
$ npm start
You should get something like this:
localhost:3000 in your browser and VOILA, it opens:
As the page says, if you want to write your own react code, edit the
Thanks for reading the blog.