JohanDev6 / TEMPLATE_My-react-typescript-styled

Simple and initial template react with typescript, theming, React test renderer and enzyme testing architecture, provider, icons, state, routers, context, Poppins Font πŸ˜ƒ.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Template React with Styled, React Router, Jest and Enzyme πŸ”₯

This template was made to start react projects with ts in a clean way. But already prepared for any complexity using typing and even unit testing with Jest.

Features

  • Clean Structure
  • Easy manipulation
  • Theming
  • Context
  • Routers
  • Typing
  • Testing

Tools, Techs & Main libs

  • React Router
  • Styled Components
  • React Spring
  • React test renderer and Enzyme
  • React Icons

Folder structure

.
β”œβ”€β”€ src
β”‚   β”œβ”€β”€ components
β”‚   β”‚   β”œβ”€β”€ button # Folder for component
β”‚   β”‚   β”‚   └── index.tsx
β”‚   β”‚   β”‚       styles.ts
β”‚   β”‚   β”‚       component.spec.ts
β”‚   β”œβ”€β”€ pages or screens
β”‚   β”‚   β”œβ”€β”€ home # Folder for page
β”‚   β”‚   β”‚   └── index.tsx
β”‚   β”‚   β”‚       styles.ts
β”‚   β”‚   β”œβ”€β”€ notfound # Folder for page
β”‚   β”‚   β”‚   └── index.tsx
β”‚   β”‚   β”‚       styles.ts
β”‚   β”œβ”€β”€ providers
β”‚   β”‚   β”œβ”€β”€ mainProvider.tsx
β”‚   └── utils or hooks
β”‚       └── useTitle.tsx
|           [...]
└── [...rest] Default files app.tsx, index.tsx, themes and etc... 

Init your development

$ git clone https://github.com/JohanDev6/Template-My-react-typescript-styled
$ yarn install
$ cd src/
$ yarn start

Contribution to template

Please use issue tracker to report bugs or make push requests.

About

Simple and initial template react with typescript, theming, React test renderer and enzyme testing architecture, provider, icons, state, routers, context, Poppins Font πŸ˜ƒ.

License:Creative Commons Zero v1.0 Universal


Languages

Language:TypeScript 85.6%Language:HTML 14.4%