This is my little configuration of directories and files, for best practices have pre-install husky and eslint (based in airbnb). If you want work with some library of css you can install
- Assets
- only for images, fonts, videos
- Components
- only for components like [ modals, buttons, etc... ] if is reusable is better
- Config
- only for global configurations if you need
- Hooks
- Hooks are a new addition in React that lets you use state and other React features without writing a class
- Layout
- it define the Layout of the aplication, simply accepts a children and render them
- is a good pratice to separate it from components
- Redux
- i use redux for global states you can change it if you want
- Routes
- is my personal configuration for routes is a simple and clean code
- Utils
- its only for hellper functions
- Views or Pages is =
- conatin all pages of you aplication, includes 404, 500, etc...
- install packages
npm install
- start
npm start