Structuring our application

To begin, we'll need to structure our application in the same way that we did in the first chapter. This means that we need to create two new directories called components and containers inside the src directory. The files for the App component can be moved to the container directory, and the App.test.js file can be deleted since testing hasn't been covered yet.

After creating the directories and moving the files, our application structure will look as follows:

github-portfolio|-- node_modules|-- public    |-- favicon.ico    |-- index.html    |-- manifest.json|-- src    |-- components    |-- containers    |-- App.css    |-- App.js    |-- index.css    |-- index.js    |-- serviceWorker.js.gitignorepackage.json

Don't forget to change the location ...

Get React Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.