0.8.5 • Published 1 year ago

@myrtille/react v0.8.5

Weekly downloads
4
License
MIT
Repository
-
Last release
1 year ago

@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