Skip to content

useState Hook Does Not Run in Body of Dialog Component #4

@frastlin

Description

@frastlin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions