From the course: Building Modern Projects with React

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

The React entry point

The React entry point

From the course: Building Modern Projects with React

Start my 1-month free trial

The React entry point

- [Instructor] The first thing that we have to do is create and setup the directory that will hold our React project. First you've got to create a directory and call it React Ecosystems or something like that like I've done here. And once you've done that, open up a terminal inside that directory and run npm init -y to initialize a new npm package. And that'll create this package.json file here for us. And if you want to initialize this as a new git repo as well, now is a good time to run git init. And once we've done that, let's create two directories inside of our root directory. We're going to call the first one public. This will hold all the publicly accessible resources for our app just like in a regular static website. And we're going to call the second one src. S-R-C. This will hold our actual react code. The next thing that we're going to do is create a file called index.html inside the public directory that we…

Contents