UNPKG

react-float-anchor

Version:

React component for positioning an element aligned to another

17 lines (13 loc) 262 B
/* @flow */ import * as React from 'react'; type Props = {| onMount: () => void; |}; export default class LifecycleHelper extends React.Component<Props> { componentDidMount() { this.props.onMount(); } render(): React.Node { return null; } }