render-prop-fns
Install
npm install --save render-prop-fns
Usage
import React from "react";
import { Counter } from "render-prop-fns";
const Example = () => (
<Counter>
{({ inc, value }) => (
<div>
{value}
<br />
<button onClick={inc}>increment</button>
</div>
)}
</Counter>
);
License
MIT © jeetiss