skip to Main Content

Reactjs – Why is it that when I include the <GlobalProvider> component, it can't be rendered?

here the code index.js : import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.js'; import GlobalStyle from './styles/GlobalStyle.js' import { GlobalProvider } from './context/globalContext.js'; ReactDOM.render( <React.Fragment> <GlobalStyle /> <GlobalProvider> <App /> </GlobalProvider> </React.Fragment>, document.getElementById('root') ); here a…

VIEW QUESTION
Back To Top
Search