react-inputs-hook

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i react-inputs-hook

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

11.1 kB

Total Files

5

Last publish

Collaborators

  • shivyan