Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { useState } from 'react';
- export const useInputValue = (initial) => {
- const [value, setValue] = useState(initial)
- return { value, onChange: e => setValue(e.target.value) }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement