4 ms·
I get the advantage of using React for single-page web apps, but I'm totally with you on the dark mode example. The modern way to do dark mode is to assume tha
by brlewis 7y ago
I get the advantage of using React for single-page web apps, but I'm totally with you on the dark mode example.
The modern way to do dark mode is to assume that people who want it won't be using IE or Edge, and just do a CSS media query. https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme#Browser_compatibility https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pref...