This is a boilerplate for react web application. If you are lazy like me, who hates start new portfolio app from a scratch and hates setting up react components, css for responsive web application. This might be for you.
Clone this app, and run
npm install
or yarn
and run
npm start
or yarn start
naming for components follow vue.js documentation (I know why I don't follow react one, but I think they don't have one like this)
- apis
- This folder stores all api functions therefore you want to return promise object from each api functions
- naming rule is up to you, but recommend to give simple and related name.
- components
- If the component is single instance componentFollow this rule
- If the component is base components, Follow this rule
- hooks
- export custome hooks in here
- pages
- all react components assigned its route
- routes
- declare all routes to each page
- store
- redux store
- styles
- all global scss variables, functions can be declared here
- utils
- some util functions can be stored here.