A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://effector.dev/en/api/effector-react/createStoreConsumer below:

Website Navigation


createStoreConsumer | effector

import { createStoreConsumer } from "effector-react";

Methods createStoreConsumer($store)

Creates a store-based React component which is watching for changes in the store. Based on Render Props technique.

Arguments
  1. $store (Store)
Returns

(React.Component)

Examples

import { createStore } from "effector";

import { createStoreConsumer } from "effector-react";

const $firstName = createStore("Alan");

const FirstName = createStoreConsumer($firstName);

const App = () => <FirstName>{(name) => <h1>{name}</h1>}</FirstName>;

Try it

More

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4