Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: effector
node v11.15.0
endpoint
share
tweet
const { createStore, createEvent } = require('effector') const change = createEvent('change') const first = createStore(0) .on(change, (state, value) => state + value) const second = createStore(100) .watch(first, (secondState, firstState) => console.log(secondState * firstState)) // Change first store and trigger watch in second change(20)
Created from: https://npm.runkit.com/effector
Loading…
Clone and edit this document