Bu sahifa hali tarjima qilinmagan

Tarjima qoshish uchun havola boyicha o'tib Pull Request oching (havolaga o'tish).

Standart til uchun tarkibni ko'rsatadi.

import { connect } from "effector-react";
Deprecated

since effector-react 23.0.0.

Consider using hooks api in modern projects.

Wrapper for useUnit to use during migration from redux and class-based projects. Will merge store value fields to component props.

Methods

connect($store)(Component)

Formulae

connect($store: Store<T>)(Component): Component

Arguments

  1. $store (Store): store or object with stores

Returns

(Component) => Component: Function, which accepts react component and return component with store fields merged into props

connect(Component)($store)

Formulae

connect(Component)($store: Store<T>): Component

Arguments

  1. Component (React.ComponentType): react component

Returns

($store: Store<T>) => Component: Function, which accepts a store and returns component with store fields merged into props

Tarjima jamiyat tomonidan qollanilyapti

Ingliz tilidagi hujjatlar eng dolzarb hisoblanadi, chunki u effector guruhi tomonidan yozilgan va yangilanadi. Hujjatlarni boshqa tillarga tarjima qilish jamiyat tomonidan kuch va istaklar mavjud bo'lganda amalga oshiriladi.

Esda tutingki, tarjima qilingan maqolalar yangilanmasligi mumkin, shuning uchun eng aniq va dolzarb ma'lumot uchun hujjatlarning asl inglizcha versiyasidan foydalanishni tavsiya etamiz.

Hammualliflar