Hello, I have a form on my dialog and I'm using the useState hook: `const [ email, setEmail ] = useState(props.email)` but when I console.log(email) after this, I get undefined. If I run the component outside the dialog, then it works just fine.
Hello,
I have a form on my dialog and I'm using the useState hook:
const [ email, setEmail ] = useState(props.email)but when I console.log(email) after this, I get undefined. If I run the component outside the dialog, then it works just fine.