All Projects → renatorib → React Powerplug

renatorib / React Powerplug

Licence: mit
🔌 Renderless Containers

Programming Languages

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

Projects that are alternatives of or similar to React Powerplug

react-treefold
A renderless tree component for your hierarchical React views
Stars: ✭ 37 (-98.63%)
Mutual labels:  renderless, renderless-components, render-props
render-props
㸚 Easy-to-use React state containers which utilize the render props (function as child) pattern
Stars: ✭ 33 (-98.78%)
Mutual labels:  state-container, render-props
Godux
State Management for Go Backend application inspired in Redux.
Stars: ✭ 222 (-91.79%)
Mutual labels:  state
Refunk
🎧 Simple React functional setState
Stars: ✭ 242 (-91.05%)
Mutual labels:  state
Virtual List
🧾 React Virtual List Component which worked with animation
Stars: ✭ 232 (-91.42%)
Mutual labels:  react-component
Kaskade
[INACTIVE] Simplifying state management
Stars: ✭ 223 (-91.75%)
Mutual labels:  state
React Sight
Visualization tool for React, with support for Fiber, Router (v4), and Redux
Stars: ✭ 2,716 (+0.44%)
Mutual labels:  react-component
React Organism
Dead simple React state management to bring pure components alive
Stars: ✭ 219 (-91.9%)
Mutual labels:  state
React Email Editor
Drag-n-Drop Email Editor Component for React.js
Stars: ✭ 3,131 (+15.79%)
Mutual labels:  react-component
Dsladapter
🔥 Kotlin时代的Adapter, Dsl 的形式使用 RecyclerView.Adapter, 支持折叠展开, 树结构,悬停,情感图状态切换, 加载更多, 多类型Item,侧滑菜单等
Stars: ✭ 231 (-91.46%)
Mutual labels:  state
React Css Grid
React layout component based on CSS Grid Layout and built with styled-components
Stars: ✭ 239 (-91.16%)
Mutual labels:  react-component
Getx pattern
Design pattern designed to standardize your projects with GetX on Flutter.
Stars: ✭ 225 (-91.68%)
Mutual labels:  state
Laravel World
provide countries, states, and cities relations and database.
Stars: ✭ 222 (-91.79%)
Mutual labels:  state
React Native demo
react-native实现网易新闻和美团,实现大部分页面。使用最新的react-navigation等组件,同时支持安卓和iOS设备。
Stars: ✭ 237 (-91.24%)
Mutual labels:  react-component
React Native Htmlview
A React Native component which renders HTML content as native views
Stars: ✭ 2,546 (-5.84%)
Mutual labels:  react-component
Boundless
✨ accessible, battle-tested React components with infinite composability
Stars: ✭ 242 (-91.05%)
Mutual labels:  react-component
React Photo View
一款精致的 React 图片预览组件
Stars: ✭ 218 (-91.94%)
Mutual labels:  react-component
React Firestore
React components to fetch data from firestore using render props
Stars: ✭ 228 (-91.57%)
Mutual labels:  render-props
React Image Gallery
React carousel image gallery component with thumbnail support 🖼
Stars: ✭ 2,946 (+8.95%)
Mutual labels:  react-component
Final Form
🏁 Framework agnostic, high performance, subscription-based form state management
Stars: ✭ 2,787 (+3.07%)
Mutual labels:  state

React PowerPlug

npm stars tweet


React PowerPlug is a set of pluggable renderless components and helpers that provides different types of state and logic utilities that you can use with your dumb components. It creates state and passes down the logic to the children, so you can handle your data. Read about the Render Props pattern.

Highlights

  • 👌 Dependency free
  • 🔌 Plug and play
  • 🔮 Tree shaking friendly (ESM, no side effects)
  • 📦 Super tiny (~3kb)
  • 📚 Well documented
  • 🍻 Bunch of awesome utilities
See quick examples
import { State, Toggle } from 'react-powerplug'
import { Pagination, Tabs, Checkbox } from './MyDumbComponents'

<State initial={{ offset: 0, limit: 10, totalCount: 200 }}>
  {({ state, setState }) => (
    <Pagination {...state} onChange={(offset) => setState({ offset })} />
  )}
</State>

<Toggle initial={true}>
  {({ on, toggle }) => (
    <Checkbox checked={on} onChange={toggle} />
  )}
</Toggle>

// You can also use a `render` prop instead

<Toggle
  initial={false}
  render={({ on, toggle }) => (
    <Checkbox checked={on} onChange={toggle} />
  )}
/>

Guide & Documentation

http://rena.to/react-powerplug/


Watch 'Rapid Prototyping with React PowerPlug' by Andrew Del Prete on egghead.io


Install

Node Module

yarn add react-powerplug
npm i react-powerplug

UMD

<script src="https://unpkg.com/react-powerplug/dist/react-powerplug.min.js"></script>

exposed as ReactPowerPlug

Contributors

Thanks goes to these wonderful people (emoji key):


Renato Ribeiro

💻 🎨 📖 ⚠️

Bogdan Chadkin

💻 📖 ⚠️ 🚇

Travis Arnold

💻 📖 🐛

Max Graey

💻

Mateusz Burzyński

🐛

Andy Edwards

💻

Andrea Vanini

🐛

Ivan Starkov

🐛

Sean Roberts

📖

Braden Kelley

🐛

This project follows the all-contributors specification. Contributions of any kind welcome!

Contribute

You can help improving this project sending PRs and helping with issues.
Also you can ping me at Twitter

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].