@trbl/react-node-position

1.1.1 • Public • Published

NPM Bundle Size Supported by TRBL

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

Package Sidebar

Install

npm i @trbl/react-node-position

Weekly Downloads

2

Version

1.1.1

License

MIT

Unpacked Size

49.6 kB

Total Files

4

Last publish

Collaborators

  • chrishomsey
  • jacobsfletch
  • trouble