• React higher-order component to get the dimensions of a wrapper element and pass them as properties to the child element.
  • options.containerStyle object = A style object for the
  • that will wrap your component.
  • Component { render () ( < div containerWidth = { this .
  • Returns object The wrapped React component instance
  • Can be used as a higher-order component or as an ES7 class decorator (see examples)

Read more


survivejs

@survivejs: “digidem/react-dimensions — #reactjs hoc to get dimensions of container” open tweet »