@trbl/react-node-position
v1.1.1
Published
Send nodes.
Downloads
17
Readme
React Node Position
Send nodes.
Quick Start
Installation
$ yarn add @trbl/react-node-position
Composition
import React from 'react';
import { NodePositionProvider, withNodePosition } from '@trbl/react-node-position';
const MyComponent = withNodePosition(forwardRef(props, ref) => return <div ref={ref}>My Component</div>));
const App = () => {
return (
<NodePositionProvider>
<MyComponent>
...
</MyComponent>
</NodePositionProvider>
)
}
export default App;
Demo
To demo locally, clone the repo and
$ yarn
$ yarn dev
$ open http://localhost:3000
Documentation
All available props can be found via the references below:
Contribution
Help us, or let us help you help us.
License
MIT Copyright (c) TRBL, LLC