Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/renatorib/react-powerplug

:electric_plug: [Unmaintained] Renderless Containers
https://github.com/renatorib/react-powerplug

dumb dumb-components javascript react react-component render-props renderless renderless-components state state-container

Last synced: about 1 month ago
JSON representation

:electric_plug: [Unmaintained] Renderless Containers

Lists

README

        


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](https://reactjs.org/docs/render-props.html) pattern.

## Highlights

- :ok_hand: Dependency free
- :electric_plug: Plug and play
- :crystal_ball: Tree shaking friendly (ESM, no side effects)
- :package: Super tiny (~3kb)
- :books: Well documented
- :beers: Bunch of awesome utilities

See quick examples

```jsx
import { State, Toggle } from 'react-powerplug'
import { Pagination, Tabs, Checkbox } from './MyDumbComponents'

{({ state, setState }) => (
setState({ offset })} />
)}

{({ on, toggle }) => (

)}

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

(

)}
/>
```

## 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

```html

```

exposed as `ReactPowerPlug`

# Contributors

Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):

| [
Renato Ribeiro](http://twitter.com/renatorib_)
[💻](https://github.com/renatorib/react-powerplug/commits?author=renatorib "Code") [🎨](#design-renatorib "Design") [📖](https://github.com/renatorib/react-powerplug/commits?author=renatorib "Documentation") [⚠️](https://github.com/renatorib/react-powerplug/commits?author=renatorib "Tests") | [
Bogdan Chadkin](https://github.com/TrySound)
[💻](https://github.com/renatorib/react-powerplug/commits?author=TrySound "Code") [📖](https://github.com/renatorib/react-powerplug/commits?author=TrySound "Documentation") [⚠️](https://github.com/renatorib/react-powerplug/commits?author=TrySound "Tests") [🚇](#infra-TrySound "Infrastructure (Hosting, Build-Tools, etc)") | [
Travis Arnold](http://travisrayarnold.com)
[💻](https://github.com/renatorib/react-powerplug/commits?author=souporserious "Code") [📖](https://github.com/renatorib/react-powerplug/commits?author=souporserious "Documentation") [🐛](https://github.com/renatorib/react-powerplug/issues?q=author%3Asouporserious "Bug reports") | [
Max Graey](https://github.com/MaxGraey)
[💻](https://github.com/renatorib/react-powerplug/commits?author=MaxGraey "Code") | [
Mateusz Burzyński](https://github.com/Andarist)
[🐛](https://github.com/renatorib/react-powerplug/issues?q=author%3AAndarist "Bug reports") | [
Andy Edwards](http://helloandy.xyz)
[💻](https://github.com/renatorib/react-powerplug/commits?author=jedwards1211 "Code") | [
Andrea Vanini](http://uidu.org)
[🐛](https://github.com/renatorib/react-powerplug/issues?q=author%3Aapuntovanini "Bug reports") |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| [
Ivan Starkov](https://twitter.com/icelabaratory)
[🐛](https://github.com/renatorib/react-powerplug/issues?q=author%3Aistarkov "Bug reports") | [
Sean Roberts](http://factore.ca)
[📖](https://github.com/renatorib/react-powerplug/commits?author=SeanRoberts "Documentation") | [
Braden Kelley](https://github.com/redbmk)
[🐛](https://github.com/renatorib/react-powerplug/issues?q=author%3Aredbmk "Bug reports") |

This project follows the [all-contributors](https://github.com/kentcdodds/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](http://twitter.com/renatorib_)