Skip to Main Content
React Projects
book

React Projects

by Roy Derks
December 2019
Intermediate to advanced content levelIntermediate to advanced
474 pages
10h 3m
English
Packt Publishing
Content preview from React Projects

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

React Projects - Second Edition

React Projects - Second Edition

Roy Derks
Test-Driven React

Test-Driven React

Trevor Burnham

Publisher Resources

ISBN: 9781789954937Supplemental Content