October 2019
Intermediate to advanced
426 pages
11h 49m
English
Next, we are going to define a context that will keep our current list of todo items. We are going to call this context StateContext.
Let's start implementing the StateContext now:
import React from 'react'
const StateContext = React.createContext([])
export default StateContext
Now, we have a context where we can store our array of todo items.
Read now
Unlock full access