@myrtille/react
TypeScript icon, indicating that this package has built-in type declarations

0.8.5 • Public • Published

@myrtille/react

React bindings for @myrtille/core or @myrtille/mutate

npm npm bundle size CircleCI Coveralls github

Features

  • 🔄 One-way state manager: your store is the single source of truth
  • 💎 Immutable but feels mutable
  • ⛏️ Hackable
  • 💡 Based on events (actions)
  • 📖 Compatible with redux-devtools

API

  • provider(store: Store) -> Function(React.Component) -> React.Component
  • Provider({ store: Store, children }) -> React.Element
  • useDispatch() -> Function
  • useListeners(listeners: [][(String | Action), Function]) -> void
  • useStateAt(path: String | void) -> Any
  • useStore -> Store
  • Context: React.Context

/@myrtille/react/

    Package Sidebar

    Install

    npm i @myrtille/react

    Weekly Downloads

    2

    Version

    0.8.5

    License

    MIT

    Unpacked Size

    5.41 kB

    Total Files

    5

    Last publish

    Collaborators

    • fabienjuif