use-input-reducer
v1.0.2
Published
use-input-reducer helps you deal with react input changes. you can use it like this:
Downloads
1
Readme
use-input-reducer helps you deal with react input changes. you can use it like this:
import React from 'react';
import useInputReducer from 'use-input-reducer';
export default () => {
const [{name}, inputAttr] = useInputReducer({name: ''});
return <input {...inputAttr('name')} />;
};