Closed devrutul closed 11 months ago
For functional component, setCountry is used, it should be setMessage
setCountry
setMessage
`function App() { const [message, setMessage] = useState("This is a functional component"); const updateMessage = () => { setCountry("Updating the functional component"); }; return (
); }`
by the way nice work👍
Fixed. Thank for your words.
For functional component,
setCountry
is used, it should besetMessage
`function App() { const [message, setMessage] = useState("This is a functional component"); const updateMessage = () => { setCountry("Updating the functional component"); }; return (
{message}
); }`
by the way nice work👍