0.0.5 • Published 6 years ago
@trbl/react-node-info v0.0.5
React Node Info
Send nodes.
Quick Start
Installation
$ yarn add @trbl/react-node-info
Compositon
import React from 'react';
import { NodeInfoProvider, withNodeInfo } from '@trbl/react-node-info';
const MyComponent = withNodeInfo(() => return <div>My Component</div>);
const App = () => {
return (
<NodeInfoProvider>
<MyComponent>
...
</MyComponent>
</NodeInfoProvider>
)
}
export default App;
Demo
To demo locally, clone the repo and
$ yarn install
$ npm run dev
$ open http://localhost:3000
Documentation
All available props can be found via the references below:
License
MIT Copyright (c) TRBL, LLC