react-context-toolbox

WebJar for react-context-toolbox

Лицензия

Лицензия

MIT
Категории

Категории

React Взаимодействие с пользователем Веб-фреймворки
Группа

Группа

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

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

react-context-toolbox
Последняя версия

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

2.0.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

react-context-toolbox
WebJar for react-context-toolbox
Ссылка на сайт

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

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

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

https://github.com/react-restart/context

Скачать react-context-toolbox

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

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

Зависимости

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

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

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

@restart/context npm

React context helpers.

Install

npm install @restart/context

Usage

import React from 'react';
import mapContextToProps from '@restart/context/mapContextToProps';

const MyValueContext = React.createContext(null);

function MyComponent(props) {
  /* ... */
}

const MyComponentWithMyValue = mapContextToProps(
  MyValueContext,
  myValue => ({ myValue }),
  MyComponent,
);

const withMyValue = Component =>
  mapContextToProps(
    {
      consumers: MyValueContext,
      mapToProps: myValue => ({ myValue }),
      displayName: `withMyValue(${Component.displayName || Component.name})`,
    },
    Component,
  );
org.webjars.npm
A loose suite of style agnostic components, a11y primitives, and react utilities (icon: https://webkul.github.io/vivid/)

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

Версия
2.0.2