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>
)