cra-template-mind-decay-ts
v1.3.0
Published
Template for Create-React-App with custom folder structure, lintersand styled-components
Downloads
9
Maintainers
Readme
cra-template-mind-decay-ts
My template for Create React App
npx create-react-app --template mind-decay-ts
What it adds on top of default CRA:
- typescript
- absolute imports
- modern css reset
- styled-components
- /style folder with common global styles, typography styles, and utils (screen sizes, fonts list)
- /components for components that are shared across the whole app
- /hooks for shared hooks
- /context for React contexts and it's corresponding providers
- /utils for shared utility and helper functions
- /assets for images, fonts, files
- /types for shared types and ts modules
- /layouts for shared layouts and their corresponding components
- /pages for pages composed of shared components and layouts
- prettier, eslint, editorconfig
- simple fetch apiClient
- useApi, useMedia, useScrollToAnchor, and useDebounce hooks
- deletes useless CRA files