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

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
主站蜘蛛池模板: 浏阳市| 班戈县| 新蔡县| 宜昌市| 水城县| 旬阳县| 霍城县| 扎囊县| 黎平县| 鸡泽县| 邵武市| 太康县| 孟州市| 永春县| 龙江县| 玛沁县| 海南省| 社旗县| 镇康县| 茂名市| 平阳县| 承德县| 兴国县| 霸州市| 田林县| 宁都县| 宾川县| 泗洪县| 湘潭市| 沙湾县| 苏州市| 定西市| 田阳县| 丁青县| 琼中| 沙洋县| 观塘区| 游戏| 洱源县| 永兴县| 建德市|