1.0.1 • Published 5 years ago

react-inputs-hook v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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