Skip to content

jhrdina/bs-black-tea

Repository files navigation

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-tea

and add a corresponding item to the bsconfig.json:

"bs-dependencies": ["bs-black-tea"],

For usage info see examples folder.

Development

Build

npm run build

Build + Watch

npm run start

Run examples

First run webpack in watch mode to create JS bundles using

npm run webpack

and open examples/Example.html or examples/ReactExample.html. There is no need to run a webserver.

About

ReasonML + TEA (The Elm Architecture) with React support

Resources

License

Stars

Watchers

Forks

Packages

No packages published