- MobX Quick Start Guide
- Pavan Podila Michel Weststrate
- 128字
- 2021-08-05 10:34:26
Summary
The story of MobX revolves around observables. Actions mutate these observables. Derivations and Reactions observe and react to changes to these observables. Observables, actions, and reactions form the core triad.
We have seen several ways to shape your observables with objects, arrays, maps, and boxed observables. Actions are the recommended way to modify observables. They add to the vocabulary of operations and boost performance by minimizing change notifications. Reactions are the observers that react to changes in observables. They are the ones causing side-effects in the app.
Reactions come in three flavors, autorun(), reaction(), and when(), and distinguish themselves as being long-running or one-time. when(), the only one-time effector, comes in a simpler form, where it can return a promise, given a predicate function.
- 網(wǎng)絡(luò)教育學(xué)習(xí)指導(dǎo)
- Hands-On Chatbot Development with Alexa Skills and Amazon Lex
- Spring Cloud微服務(wù)架構(gòu)進(jìn)階
- 互聯(lián)網(wǎng)安全的40個智慧洞見:2015年中國互聯(lián)網(wǎng)安全大會文集
- 世界互聯(lián)網(wǎng)發(fā)展報告·2019
- Learning Swift(Second Edition)
- 物聯(lián)網(wǎng)之霧:基于霧計算的智能硬件快速反應(yīng)與安全控制
- 光纖通信系統(tǒng)與網(wǎng)絡(luò)(修訂版)
- 通信十年:擁抱互聯(lián)網(wǎng)
- 網(wǎng)絡(luò)安全應(yīng)急響應(yīng)技術(shù)實(shí)戰(zhàn)指南
- 網(wǎng)絡(luò)利他行為研究:積極心理學(xué)的視角
- 網(wǎng)絡(luò)工程實(shí)施技術(shù)與方案大全
- 云工廠:開啟中國制造云時代
- 物聯(lián)網(wǎng)的機(jī)遇與利用
- TCP/IP基礎(chǔ)(第2版)