官术网_书友最值得收藏!

Observables, Actions, and Reactions

Describing the structure of the client state is the first step in UI development. With MobX, you do this by creating your tree of observables. As the user interacts with the app, actions are invoked on your observable state, which in turn can cause reactions (aka side-effects). Continuing from Chapter 1Introduction to State Management, we will now take a deeper look at the core concepts of MobX.

The topics covered in this chapter include:

  • Creating the various kinds of observables
  • Setting up the actions that mutate the observables
  • Using reactions to handle external changes
主站蜘蛛池模板: 北票市| 绵竹市| 大悟县| 崇明县| 大石桥市| 金秀| 剑阁县| 万全县| 鲁甸县| 田阳县| 蒙城县| 丹东市| 东丽区| 扶绥县| 黄梅县| 新巴尔虎右旗| 武乡县| 双流县| 邮箱| 上饶市| 昌图县| 建始县| 南皮县| 灵璧县| 五华县| 忻城县| 安龙县| 洞头县| 东兰县| 双桥区| 额敏县| 邵阳县| 昌吉市| 旬阳县| 朝阳区| 宜君县| 靖江市| 榕江县| 台湾省| 和静县| 兴山县|