react-redux-flow-example icon indicating copy to clipboard operation
react-redux-flow-example copied to clipboard

⚠️ ♻️ Warning: not up to date

⚠️ Warning: this example is not up to date anymore. Please check official docs for Flow + Redux.

react-redux-flow-example

Based on definitions done by @gcanti in https://github.com/reactjs/redux/pull/1887.

Current state

src/Counter.js is 100% Flow covered connected component.

Flow can check props for it: try removing text prop for Counter in src/App.js.

Awkward parts

If you want to use ownProps inside the connected component (not just mapStateToProps/mapDispatchToProps), you should merge ownProps into stateProps for the type check.

To-do

  • [x] Typed thunked actions
  • [ ] Use $Exact type to filter out redundant props

Running Flow

npm run flow