github civiccc/react-waypoint v7.1.0

latest releases: v10.3.0, v10.2.0, v10.1.0...
8 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.