Naboo's Podracing Misadventure
Miss any of our Open RFC calls?Watch the recordings here! »

render-prop-fns

0.0.1 • Public • Published

render-prop-fns

NPM JavaScript Style Guide

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

Keywords

none

Install

npm i render-prop-fns

DownloadsWeekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

18.5 kB

Total Files

4

Last publish

Collaborators

  • avatar