October 2019
Intermediate to advanced
426 pages
11h 49m
English
We are going to start by upgrading our App component. It is possible to gradually refactor components so that they use Hooks instead. We do not need to refactor every component at once.
Let's use Hooks for the App component now:
import { inject } from 'mobx-react'
import { useTodoStore } from './hooks'
export default function App () {
const todoStore = useTodoStore()
As you can ...
Read now
Unlock full access