0.2.2 • Published 7 years ago
bs-black-tea v0.2.2
Black TEA
Simplified version of OvermindDL1/bucklescript-tea with following extra features:
- No view layer. You can subscribe to model changes and specify your own handling (example) or use our Provider for ReasonReact (see example).
- Improved subscriptions handling
- Future support of both Native and JavaScript compile targets (ReasonReact provider is not available on Native)
Usage
Add the package to your project
npm install bs-black-teaand add a corresponding item to the bsconfig.json:
"bs-dependencies": ["bs-black-tea"],For usage info see examples folder.
Development
Build
npm run buildBuild + Watch
npm run startRun examples
First run webpack in watch mode to create JS bundles using
npm run webpackand open examples/Example.html or examples/ReactExample.html. There is no need to run a webserver.