You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
react-dom.development.js:86 Warning: A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.
#27
Open
lylest opened this issue
Jun 25, 2022
· 0 comments
i get this when trying to wrapp my code with responsiveContex
import React,{createContext} from 'react' import { Grommet,ResponsiveContext,Box } from 'grommet'; import MainNavigator from './navigation/MainNavigator' import {BrowserRouter as Router} from 'react-router-dom' import './css/main.css'
i get this when trying to wrapp my code with responsiveContex
import React,{createContext} from 'react'
import { Grommet,ResponsiveContext,Box } from 'grommet';
import MainNavigator from './navigation/MainNavigator'
import {BrowserRouter as Router} from 'react-router-dom'
import './css/main.css'
function App() {
return (
<Grommet theme={theme}>
<ResponsiveContext.Consumer>
<Router>
<MainNavigator />
</Router>
)
}
export default App
The text was updated successfully, but these errors were encountered: