All Projects → yesmeck → react-context-io

yesmeck / react-context-io

Licence: MIT license
Share state with ease.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-context-io

react-wisteria
Managing the State with the Golden Path
Stars: ✭ 18 (-18.18%)
Mutual labels:  state, context
Yewdux
Redux-like state containers for Yew apps
Stars: ✭ 58 (+163.64%)
Mutual labels:  state, context
Use Global Context
A new way to use “useContext” better
Stars: ✭ 34 (+54.55%)
Mutual labels:  state, context
React Workshop
⚒ 🚧 This is a workshop for learning how to build React Applications
Stars: ✭ 114 (+418.18%)
Mutual labels:  state, context
Alveron
Elm & Reason inspired state management for React
Stars: ✭ 57 (+159.09%)
Mutual labels:  state, context
Contextism
😍 Use React Context better.
Stars: ✭ 141 (+540.91%)
Mutual labels:  state, context
agile
🌌 Global State and Logic Library for JavaScript/Typescript applications
Stars: ✭ 90 (+309.09%)
Mutual labels:  state
mutable
State containers with dirty checking and more
Stars: ✭ 32 (+45.45%)
Mutual labels:  state
tstate-machine
TypeScript implementation of State Manager(like StateMachine)
Stars: ✭ 20 (-9.09%)
Mutual labels:  state
deep-state-observer
State library for high performance applications.
Stars: ✭ 25 (+13.64%)
Mutual labels:  state
concave
🧐 Lens-like state management (for React).
Stars: ✭ 13 (-40.91%)
Mutual labels:  state
sigctx
Go contexts for graceful shutdown
Stars: ✭ 55 (+150%)
Mutual labels:  context
compose-actors
🤖 Android app built with jetpack 🚀 compose follows new revamped guide to app architecture. Implemented with State, Coroutines ➰, ViewModels, Repository pattern, Light/Dark theme 🌈 MD3, Animations, Draw on canvas, Custom layouts, UI state handling, 🌀 Image loading with coil, Palette 🎨 usage and dynamic theming etc.
Stars: ✭ 80 (+263.64%)
Mutual labels:  state
laravel-react-spa
A Laravel-React SPA starter project template.
Stars: ✭ 94 (+327.27%)
Mutual labels:  context
terraform-remote-state
A Terraform module that configures an s3 bucket for use with Terraform's remote state feature
Stars: ✭ 21 (-4.55%)
Mutual labels:  state
useSharedState
useSharedState is a simple hook that can be used to share state between multiple React components.
Stars: ✭ 0 (-100%)
Mutual labels:  state
vue
Vue integration for Nano Stores, a tiny state manager with many atomic tree-shakable stores
Stars: ✭ 25 (+13.64%)
Mutual labels:  state
multi-ctx
Multiple Spring Contexts Showcase
Stars: ✭ 16 (-27.27%)
Mutual labels:  context
sanic-plugin-toolkit
Easily create Plugins for Sanic!
Stars: ✭ 49 (+122.73%)
Mutual labels:  context
react-cool-form
😎 📋 React hooks for forms state and validation, less code more performant.
Stars: ✭ 246 (+1018.18%)
Mutual labels:  state

react-context-io

Naive implementation of rfcs#89.

Installation

$ npm i react-context-io

Or

$ yarn add react-context-io

Usage

import React, { useContext } from 'react';
import { createContextIO } from 'react-context-io';

const CountStore = createContextIO(0);

const Result = () => {
  const count = useContext(CountStore);
  return <div>{count}</div>;
};

const AddButton = () => (
  <button onClick={() => CountStore.write(count => count + 1)}>+</button>
);

const Counter = () => (
  <CountStore.Provider>
    <Result />
    <AddButton />
  </CountStore.Provider>
);

Live demo

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].