1.1.1 • Published 4 years ago

@trbl/react-node-position v1.1.1

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

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