Skip to content
ReasonML + TEA (The Elm Architecture) with React support
OCaml Makefile JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
examples
src
.gitignore
LICENSE
Makefile
README.md
bs-black-tea.opam
bsconfig.json
dune-project
jbuild-ignore
package-lock.json
package.json
webpack.config.js

README.md

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.

You can’t perform that action at this time.