@codewell/target-value

0.1.1 • Public • Published

@codewell/target-value

Installation

npm install @codewell/target-value

Basic Usage

import targetValue from '@codewell/target-value';

const eventHandler = (inputValue) => {
  // Do something with the input value
  // from the input element
}

const sayHello = (inputValue, hello, there) => {
  console.log(hello, there, inputValue)
}

const SomeComponent = () => (
  <>
    <input onChange={targetValue(eventHandler)} />
    <input onChange={targetValue(sayHello, "hello", "there")} />
  </>
);

Readme

Keywords

none

Package Sidebar

Install

npm i @codewell/target-value

Weekly Downloads

1

Version

0.1.1

License

none

Unpacked Size

2.23 kB

Total Files

4

Last publish

Collaborators

  • fippli