https://github.com/michaeljscript/react-render-prop
Simple package for creating react render prop components
https://github.com/michaeljscript/react-render-prop
Last synced: 11 months ago
JSON representation
Simple package for creating react render prop components
- Host: GitHub
- URL: https://github.com/michaeljscript/react-render-prop
- Owner: michaeljscript
- License: mit
- Created: 2017-11-21T20:05:19.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-28T19:14:57.000Z (about 8 years ago)
- Last Synced: 2024-01-28T18:20:57.629Z (about 2 years ago)
- Language: JavaScript
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-render-prop
Simple package for creating react render prop components
## usage
```js
import createProvider from 'react-render-prop';
const NameProvider = createProvider(props => ({ fullName: props.name + " Doe" }));
const Content = () =>
Hello {fullName}} />
```