react-inputs-hook

It provides you inputs change handler for various type of inputs.

Usage no npm install needed!

<script type="module">
  import reactInputsHook from 'https://cdn.skypack.dev/react-inputs-hook';
</script>

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