/react-typescript-webpack4

react + typescript + webpack4 example

Primary LanguageTypeScript

react-typescript-webpack4

React + Typescript example using webpack 4.
This example should installed rimraf npm modules globally.

Plugins

  • react (v16.9.0)
  • typescript (v3.6.2)
  • redux (v4.0.4)
  • webpack (v4.39.3)
  • redux-thunk (v2.3.0)

Apply

  • Use Functional component in react
  • Use redux pattern (see)
  • Use react-loadable (async / split chunks)

Usage

dev mode

npm dev

prod mode

npm prod