react-container-query v0.8.0 Release Notes

Release Date: 2017-01-14 // over 7 years ago
  • Now below should work just like pre 0.7.x

    class MyComponent extends Component { render() { return ( \<div className={classnames('container', this.props.containerQuery)}\>\<div className='box'\>the box\</div\>\</div\> ); } }const query = { 'width-between-400-and-599': { minWidth: 400, maxWidth: 599 }, 'width-larger-than-600': { minWidth: 600, } };const HigherOrderComponent = applyContainerQuery(MyComponent, query);