react-breakpoints
react-breakpoints copied to clipboard
A React component that sends current breakpoint via context based on viewport width, allowing you to load different components in different breakpoints.
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node) from 0.1.3 to 0.1.4. Changelog Sourced from websocket-extensions's changelog. 0.1.4 / 2020-06-02 Remove a ReDoS vulnerability in the header parser (CVE-2020-7662, reported by Robert McLaughlin) Change license from...
noticed that componentWillUnmount includes window.addEventListener when I assumer you mean to be removing them, as you already add them in the mounting method
I don't understand purpose of adding new eventListeners when component will unmount. So I guess there are mistakes in code

I'd like to be able to achieve something similar to this CSS functionality - ``` // Mobile menu @media only screen and (min-width: 1000px) and (min-height: 500px) { // Desktop...
If using the `currentBreakpoint` for rendering different elements dependent on the breakpoint react cannot hydrate correctly if the `guessedBreakpoint` does not match with the client. (I use the `user-agent` from...
withBreakpoints returns new breakpoints object (with same data) every render. We have a some child components that should not re-render every time the parent re-renders. But we noticed that they...
Is there any reason why this package isn't written so that it can be used like this: ``` ... ... ``` So that the children are conditionally rendered? I'm a...
We merged a PR not too long ago that fixed the forwardRef issue. We need to test if this newer version of the package allows us to remove our solution...