make-event-props

WebJar for make-event-props

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

make-event-props
Последняя версия

Последняя версия

1.2.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

make-event-props
WebJar for make-event-props
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/wojtekmaj/make-event-props

Скачать make-event-props

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/make-event-props/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>make-event-props</artifactId>
    <version>1.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/make-event-props/
implementation 'org.webjars.npm:make-event-props:1.2.0'
// https://jarcasting.com/artifacts/org.webjars.npm/make-event-props/
implementation ("org.webjars.npm:make-event-props:1.2.0")
'org.webjars.npm:make-event-props:jar:1.2.0'
<dependency org="org.webjars.npm" name="make-event-props" rev="1.2.0">
  <artifact name="make-event-props" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='make-event-props', version='1.2.0')
)
libraryDependencies += "org.webjars.npm" % "make-event-props" % "1.2.0"
[org.webjars.npm/make-event-props "1.2.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

npm downloads CI dependencies dev dependencies tested with jest

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:
    get eventProps() {
      return makeEventProps(this.props, () => this.state.pdf);
    }
  • Use your event props:
    render() {
      return (
        <div {...this.eventProps} />
      );
    }

License

The MIT License.

Author

Wojciech Maj
kontakt@wojtekmaj.pl
http://wojtekmaj.pl

Версии библиотеки

Версия
1.2.0