const UseInputDemo = () => {
const name = useInput("");
console.log(name);
return (
<Input placeholder="Enter your name..." {...name} />
);
};
export default UseInputDemo;
Note: Code snippets do not include styling details unless they are the focus of the exercise.
Copyright © 2022 Explore React