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
From the course: Building Modern Projects with React
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Building a React project from scratch1m 53s
-
(Locked)
The React entry point3m 10s
-
(Locked)
Supporting ES61m 46s
-
(Locked)
The Index.js file and app component3m 31s
-
(Locked)
Building and serving with webpack7m 15s
-
(Locked)
Hot-reloading with react-hot-loader3m 9s
-
(Locked)
Meet the sample app52s
-
(Locked)
Creating the todoList component1m 58s
-
(Locked)
Creating the todoListItem component2m 14s
-
(Locked)
Creating the newTodoForm component3m 29s
-
(Locked)
Putting the app together1m 59s
-
-
-
-
-
-
-