For detailed info please read the blog where I have discussed this in details.
https://medium.com/@ankitsharma6466/building-react-app-part-2-architecture-boilerplate-683b992089a6
yarn install
yarn start
yarn build
yarn generate <COMPONENT_NAME> -r <ROUTE_NAME>
example
yarn generate orders -r myorders
1) route name is optional, if not specified then route with same name as component will be created
2) you can also use npm
instead of yarn