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

Readme

Keywords

none

Package Sidebar

Install

npm i render-prop-fns

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

18.5 kB

Total Files

4

Last publish

Collaborators

  • jeetiss