Javascript – How can i use a function that is within a function in another file?
I want to setup a dark and light theme for my react app. I have my Sidebar.js, Header.js and Footer.js files in my Components folder which is within the src folder. My app loads light theme on default and the…