https://github.com/nucleartide/typed-boilerplate
React / Redux boilerplate with emphasis on static type checking.
https://github.com/nucleartide/typed-boilerplate
flow parcel react redux
Last synced: 3 months ago
JSON representation
React / Redux boilerplate with emphasis on static type checking.
- Host: GitHub
- URL: https://github.com/nucleartide/typed-boilerplate
- Owner: nucleartide
- Created: 2018-03-04T18:43:47.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-06T09:47:21.000Z (over 7 years ago)
- Last Synced: 2025-03-22T16:39:12.357Z (7 months ago)
- Topics: flow, parcel, react, redux
- Language: JavaScript
- Homepage: https://reactjs.org/docs/static-type-checking.html
- Size: 75.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# typed-boilerplate
This is a simple React / Redux boilerplate that emphasizes static type checking with [Flow](https://flow.org/). It is based heavily on the [todos-flow](https://github.com/reactjs/redux/tree/721a5fab87071b336a2106a28a9165da3e630175/examples/todos-flow) example in the Redux repo, but has some modifications for using Flow more effectively:
- We ignore the `node_modules` directory in favor of `flow-typed` definitions.
- Reducers use algebraic data types and perform [exhaustiveness checking](https://github.com/nucleartide/typed-boilerplate/blob/1b9c5ac3b748ec15f8377f8b7f8071afa413c530/src/reducers/index.js).
- We enable `all=true` in `.flowconfig`, so you don't have to annotate your files with `// @flow`.
- We use Parcel.## Use
Clone the repo, `npm install`, and hack away!
You might also want to configure your editor with a Flow plugin.
## Example
See the example todo app at the [`todo`](https://github.com/nucleartide/typed-boilerplate/tree/1b9c5ac3b748ec15f8377f8b7f8071afa413c530) tag.
## License
MIT