From the course: Building Modern Projects with React

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Adding more components

Adding more components

- [Instructor] All right, so now that we've figured out how to set up a React app from scratch, the last thing that I'd like to show you here before we move on and take a look at some other strategies that we can use in order to get started with our React apps is I'd like to show you how we can add other components into this app. It's actually pretty straightforward and probably what you're used to in regular React applications. So, what we're going to do here is we're just going to create a new file, and we'll call this one something like, you know what, we'll call this App.js. And by the way, you may have noticed that I haven't been naming these files that have React code in them as .jsx. That's really just a personal choice. You can always name them .jsx if you want to, but at the end of the day, it doesn't really matter because webpack is going to convert those for us into files that don't contain any JSX anyway. So it doesn't really matter whether you use index.jsx, or App.jsx…

Contents