October 2019
Intermediate to advanced
426 pages
11h 49m
English
Next, we are going to migrate the AddTodo component. Here, we are going to use a State Hook to handle the input field state.
Let's migrate the AddTodo component now:
import React, { useState } from 'react'
export default function AddTodo ({ addTodo }) {
const [ input, setInput ] = useState('')
function handleInput ...
Read now
Unlock full access