Javascript – How to share a React context between two different files
So I am using the Context API from React and have one component called CreateComposition that uses the createContext() and exports it. I then import it into a component called Compositions, and use useContext() to display it as a list.…