@vapurrmaid's opinionated TypeScript React setup
npx create-react-app <name> --template @vapurrmaid/cra-template-typescript
The shell project placed a .gitkeep
placeholder in each of the following:
components/
:- Reusable components
contexts/
React.Context
s (global, or higher-level scope)
entities/
- Domain logic
pages/
- Complete views built from components etc. May contain localized components, contexts, hooks
utils/
- Language/library extensions
These aren't the only forseeable organizational units. For example services
or
api
may be another commonly used directory.
- TypeScript
- React
- TypeStyle