Describe the bug
When using the component, the onInput can be set to 0 from the client usage, even though it errors saying that it should be a callback function, its possible to, at least in dev mode, display the 0 in terminal as visible in the attached screenshot.
To Reproduce
pass 0 to onInput prop when rendering
Expected behavior
The short-circuit verification on the lib should check if onInput is indeed a function to prevent this from happening.
Screenshots
Additional context
Add any other context about the problem here.
Describe the bug When using the component, the onInput can be set to 0 from the client usage, even though it errors saying that it should be a callback function, its possible to, at least in dev mode, display the 0 in terminal as visible in the attached screenshot.
To Reproduce pass 0 to onInput prop when rendering
Expected behavior The short-circuit verification on the lib should check if onInput is indeed a function to prevent this from happening.
Screenshots
Additional context Add any other context about the problem here.