patrivet / covid19-tracker

A react app which tracks the latest and historical Covid-19 statistics at a global and country level.
https://covid19-tracker-pr.netlify.app/
GNU General Public License v3.0
3 stars 2 forks source link

Further darkMode fix and footer render issue fix. #25

Closed patrivet closed 1 year ago

patrivet commented 1 year ago

(1) moves setting of dark/light mode from footer component, into new helper function -so the mode can be set when restoring the setting from local storage. (2) move footer component inside react-router switch - stops the component from rendering before trace: INFO: (-) footer.js: render count =844 after trace: INFO: (-) footer.js: render count =1