score:3

Accepted answer

you could use matchmedia and return false from shouldcomponentupdate

something like the following depending on your use-case

shouldcomponentupdate(nextprops) {
    return window.matchmedia('(min-width: 768px)').matches
}

Related Query

More Query from same tag