@clds/create-fake-event
v0.47.0
Published
---
Downloads
262
Readme
@clds/create-fake-event
Installation
Install the package using Yarn:
yarn add @cld/create-fake-event
Or using npm:
npm install @cld/create-fake-event --save
Details
This package is available for components that need to raise a custom event (onChange event usually) It should be avoided if possible but for cases when there's no input element or when react doesn't allow raising change event (https://github.com/facebook/react/issues/10135) this is needed
The other solution would be to not require passing event as second onChange's argument, but it would force us to create new connectForm() function that will without events
Versioning
This library follows Semantic Versioning.
License
See LICENSE