linkFunction

node v14.20.1
version: 1.0.0
endpointsharetweet
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