npm react-waypoint 7.1.0
v7.1.0

latest releases: 10.3.0, 10.1.0, 10.0.0...
7 years ago

This minor release adds support for using composite components as children. Just make sure you make use of the innerRef prop passed to you from Waypoint:

class Block extends React.Component {
  render() {
    return <div ref={this.props.innerRef}>Hello</div>
  }
}
Block.propTypes = {
  innerRef: PropTypes.func.isRequired,
}

const App = () => (
  <Waypoint>
    <Block />
  </Waypoint>
)

Don't miss a new react-waypoint release

NewReleases is sending notifications on new releases.