4.0.0 • Published 3 months ago
solid-controlled-input v4.0.0
Shouldn't this be the default behavior?
Well no, if you only have touched react, it actually heavily transforms events and inputs to get its behavior.
For example:
- React's
onChange
fires on every input, while vanilla js doesn't - Vanilla JS does not have "controlled" inputs, you need to make them manually
How to use
import { ControlledInput, ControlledTextarea } from "solid-controlled-input";
That's it, use this input like you would use the og <input />
or <textarea />