Ecosyste.ms: Awesome

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

https://github.com/jsonnull/redux-render

Ergonomic Redux bindings for React using render functions
https://github.com/jsonnull/redux-render

react reactjs redux render-props

Last synced: about 1 month ago
JSON representation

Ergonomic Redux bindings for React using render functions

Lists

README

        

# Redux Render

[![Build Status](https://travis-ci.org/jsonnull/redux-render.svg?branch=master)](https://travis-ci.org/jsonnull/redux-render)
[![Coverage Status](https://coveralls.io/repos/github/jsonnull/redux-render/badge.svg?branch=master)](https://coveralls.io/github/jsonnull/redux-render?branch=master)
[![npm version](https://img.shields.io/npm/v/redux-render.svg)](https://www.npmjs.com/package/redux-render)

React bindings for Redux using render props.

```JavaScript
const Title = () => (
state.title}>
{title => (

{title}


)}

)
```

## Why use this?

Render props afford you a lot of flexibility over Higher-Order Components (HOCs).

- **Reactivity**: Change selectors or dispatch calls on the fly as your component state and props change.
- **Brevity**: It starts at just one line of code to connect to Redux in a performant way.
- **Flexibility**: Using render props, you can easily create HOCs to support your own use-cases.

## Installation

```sh
yarn add redux-render

# npm install --save redux-render
```

## Examples

- Controlled input ([source](examples/), [CodeSandbox](https://codesandbox.io/s/vnk2qzov65))

## [API](docs/API.md)
- [``](docs/API.md#provider-store)
- [``](docs/API.md#redux-selector-children)