October 2019
Intermediate to advanced
426 pages
11h 49m
English
We have two input fields in the Login component: the Username and Password fields. We are now going to replace the State Hooks with Input Hooks.
Let's start implementing Input Hooks in the Login component now:
import { useInput } from 'react-hookedup'
const [ username, setUsername ] = useState('')
It is replaced with an Input Hook, as follows:
const { value: username, bindToInput: bindUsername } = useInput('')
Read now
Unlock full access