react-responsive v6.0.0 Release Notes
-
- Require React v16.3.0 or higher
- ⚡️ Update and simplify all lifecycle functions
- ✂ Remove all support for wrapper elements
- Previously, when either
component
or non-mediaquery props were provided, we would render a wrapper element. This behavior no longer exists. - The rendering logic is now a basic ternary -
matches ? props.children : null
- Previously, when either
- Thanks to @whatknight for doing the work here.