October 2019
Intermediate to advanced
426 pages
11h 49m
English
In the previous section, we learned how to replace MobX higher-order components, such as inject and observer in existing MobX applications with Hooks. Now, we are going to learn how to migrate local state to Hooks in existing MobX applications.
An existing MobX application can be migrated to a Hook-based solution by following three steps:
We have already learned how to use a State Hook in the early chapters of this book. State Hooks make sense for simple state, such as the current state of a checkbox.
We have already learned how to use the useLocalState Hook in this chapter. ...
Read now
Unlock full access