Don't know any React so, I advise checking the change, since it might not be idiomatic.
To summarize, this code checks the browser supported CSS mediaQuery and listens to changes and falls back to it if the user never clicked the "theme switch" button in the bottom right.
Don't know any React so, I advise checking the change, since it might not be idiomatic. To summarize, this code checks the browser supported CSS mediaQuery and listens to changes and falls back to it if the user never clicked the "theme switch" button in the bottom right.