Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
linkFunction
node v14.20.1
version:
1.0.0
endpoint
share
tweet
Use linkFunction to handle onChange inputs
const linkFunction = require('linkfunction'); const e = { // Will be your SyntheticEvent for input target: { nodeName: 'any', type: 'text', value: 'Riderman' } } const setName = name => console.log(name) // Output Riderman const handler = linkFunction(setName) handler(e)
Loading…
no comments
sign in
to comment