SS
@mweststrate I usually explain MobX like this to my students / peers on a very high level. MobX replaces each property (observable) in your model class with a setter and getter function. Whenever a React component reads an observable it calls the getter function which also sets up a watcher for that observable on that component. Whenever there is an assignment, it calls the setter function which updates all the components watching to that observable.
ReplyThreadFeb 10, 20171Can someone give an example on how to mimic MobX, just using Vanilla JavaScript?
