DEV Community

Discussion on: Introducing Responsive React Components 🔥

Collapse
 
flexdinesh profile image
Dinesh Pandiyan

updating state on every pixel

I agree that state change on every pixel of resize is a major overhead, but in reality we resize the browser window often only during development to check different viewports. End users don't do that that much.

I think a nice feature would be to enable a throttled resize to minimize re renders and help with performance

That definitely has to be done. There's a open issue for this throttling the window resize event. Planning to get this done soon.