Skip to content

"onChange is not a function" #118

@Redblock6YT

Description

@Redblock6YT

I'm using nextjs and when I click the switch this is the error I get:
image
Here's my code:
<label> <span>Switch with default style</span> <Switch onChange={handleChange(1)} checked={isActive(1)} /> </label>

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