Numerous Bug Fixes
Some checks failed
Automated Container Build / build-and-push (push) Failing after 8s
Some checks failed
Automated Container Build / build-and-push (push) Failing after 8s
This commit is contained in:
parent
02eefdac0e
commit
267d429122
959 changed files with 145571 additions and 221 deletions
40
frontend/node_modules/make-event-props/README.md
generated
vendored
Normal file
40
frontend/node_modules/make-event-props/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[](https://www.npmjs.com/package/make-event-props)  [](https://github.com/wojtekmaj/make-event-props/actions)
|
||||
|
||||
# Make-Event-Props
|
||||
|
||||
A function that, given props, returns an object of event callback props optionally curried with additional arguments.
|
||||
|
||||
This package allows you to pass event callback props to a rendered DOM element without the risk of applying any invalid props that could cause unwanted side effects.
|
||||
|
||||
## tl;dr
|
||||
|
||||
- Install by executing `npm install make-event-props` or `yarn add make-event-props`.
|
||||
- Import by adding `import makeEventProps from 'make-event-props'`.
|
||||
- Create your event props object:
|
||||
```ts
|
||||
const eventProps = useMemo(
|
||||
() => makeEventProps(props, (eventName) => additionalArgs),
|
||||
[additionalArgs],
|
||||
);
|
||||
```
|
||||
- Use your event props:
|
||||
```tsx
|
||||
return <div {...eventProps} />;
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
The MIT License.
|
||||
|
||||
## Author
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td >
|
||||
<img src="https://avatars.githubusercontent.com/u/5426427?v=4&s=128" width="64" height="64" alt="Wojciech Maj">
|
||||
</td>
|
||||
<td>
|
||||
<a href="https://github.com/wojtekmaj">Wojciech Maj</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
Reference in a new issue