Open AndrewIngram opened 9 years ago
So i'm leaning towards not trying to do anything clever and just having an initial
property. The reason is that is that some media queries are highly dependent on the page as rendered in the browser, for example a min-width
query that uses CSS-dependent units like ems or rems
We need to allow server-side rendering, but there are some things to consider:
initial
(let's not overloaddefault
), which always gets used for the initial render (client or server), and then was start the actual media query work incomponentDidMount
. This means that any device sniffing would be about determining what to use as the initial valuematchMedia
on the server to give us what we expect based on the device.