Skip to content

Examples ​

React debug ​

A simple app to demonstrate how observer with debug flag work. Open Developer tools -> console. Press «Show users». Edit cities or users names.
stackblitz.com

Mutate state in autorun ​

An example which demonstrates the ability of mutate the state in reactions. Open Developer tools -> console. Press «Update».
codepen.io

Another cool example! Here we have a reaction that depends on one property, mutates two other, and that with synchronous batch and one render on each change. Fantastic!
stackblitz.com

kroman@observable.ru