create-react-app-material-typescript-redux

A ready to use boilerplate for starting big react projects

Github星跟蹤圖

Create React App example with Material-UI, TypeScript, Redux and Routing

This is a new verison with React Hooks, Material-UI 4 and React-Redux 7 (with hooks!). We use this template for all our new projects. If you want to bootstrap a project with the classic approach without hooks but with class components, you are welcome to use the previous version.

Inspired by:

Contains

Roadmap

  • Make function based components and use hooks for state etc.
  • Implement Material-UIs new styling solution based on hooks
  • use react-redux hooks
  • Hot Reloading -> Waiting for official support of react-scripts

How to use

Download or clone this repo

git clone https://github.com/innFactory/create-react-app-material-typescript-redux
cd create-react-app-material-typescript-redux

Install it and run:

npm i
npm start

Enable PWA ServiceWorker [OPTIONAL]

Just comment in the following line in the index.tsx:

// registerServiceWorker();

to

registerServiceWorker();

Enable Prettier [OPTIONAL]

  1. Step: Install the Prettier plugin (e.g. the one of Esben Petersen)
  2. Add the following snippet to your settings in VSCode:
    "editor.formatOnSave": true,
    "editor.codeActionsOnSave": {
       "source.organizeImports": true // optional
   },

Enable project snippets [OPTIONAL]

Just install following extension:

After that you can start to type fcomp (for function component) and you get a template for a new component.

The idea behind the example

This example demonstrate how you can use Create React App with TypeScript.

Contributors

Powered by innFactory

主要指標

概覽
名稱與所有者innFactory/create-react-app-material-typescript-redux
主編程語言TypeScript
編程語言CSS (語言數: 3)
平台
許可證MIT License
所有者活动
創建於2018-01-28 21:43:21
推送於2021-02-21 13:07:14
最后一次提交2021-02-21 14:06:27
發布數0
用户参与
星數288
關注者數19
派生數73
提交數97
已啟用問題?
問題數12
打開的問題數1
拉請求數10
打開的拉請求數1
關閉的拉請求數6
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?