0.2.34
Core Changes
-
Add
useMediaQuery
-
useCompositionInput
now supports<textarea />
export const Example2 = () => { const textareaProps = useCompositionInput<HTMLTextAreaElement>(useCallback((value: string) => { // Do something with the value }, [])); return ( <textarea {...textareaProps} // useCompositionInput is uncontrolled, so you might need to provide defaultValue defaultValue={defaultValue} /> ); }