This react hooks provides you different of inputs onChange handlers like file change handler, text change etc.
const {
inputs,
handleInputChange,
setInputs,
resetInputs
} = customInputHooks({
title: '',
description: '',
active: false,
embedCode: '',
changeEffects: false,
sendModuleEmail: false
});
// In input element
<input onChange={handleInputChange} name="title" value={inputs.title}>
Works with React 16.8.0 and above.
$ npm install react-input-hook --save
1.0.0
Shivyan
MIT