October 2019
Intermediate to advanced
426 pages
11h 49m
English
Next, we are going to migrate the TodoList component, which wraps the TodoItem component. Here, we use a context, which means that we can now use a Context Hook.
Let's migrate the TodoList component now:
import React, { useContext } from 'react'
export default function TodoList (props) {
const items = useContext(StateContext)
Read now
Unlock full access