Javascript – How to re-render a React functional component within useEffect?
I have a top-level component that uses a library to determine whether a user's browser is in light or dark mode. It's then being used to set the theme for the app, which include HTML Canvas components (this is important…