An open API service indexing awesome lists of open source software.

https://github.com/trustyoo86/react-typescript-webpack4

react + typescript + webpack4 example
https://github.com/trustyoo86/react-typescript-webpack4

es6 javascript react redux typescript webpack

Last synced: 11 months ago
JSON representation

react + typescript + webpack4 example

Awesome Lists containing this project

README

          

# 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](https://redux.js.org/recipes/usage-with-typescript))
- Use react-loadable (async / split chunks)

## Usage

### dev mode

```bash
npm dev
```

### prod mode

```bash
npm prod
```