react-inputs-hook
v1.0.1
Published
It provides you inputs change handler for various type of inputs.
Readme
Project
This react hooks provides you different of inputs onChange handlers like file change handler, text change etc.
Getting Started
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}>Prerequisites
Works with React 16.8.0 and above.
Installing
$ npm install react-input-hook --save
Versioning
1.0.0
Authors
Shivyan
License
MIT
