We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I used BootstrapProvider like this
Provider store={this.props.store}> <IntlProvider locale={language}> <ThemeProvider theme={defaultTheme}> <BootstrapProvider> <Container>
And not able to get the theme prop in Container Component.
export const Container = styled(div)( (props) => { console.log('props', props) return css` height: 100vh; `} );
The text was updated successfully, but these errors were encountered:
You don't need ThemeProvider and BootstrapProvider, just use <BootstrapProvider theme={defaultTheme} />.
ThemeProvider
BootstrapProvider
<BootstrapProvider theme={defaultTheme} />
Also, what is div ? You should have written something like this:
div
styled.div` (props) => { console.log('props', props) return css` height: 100vh; `} `
If div is a component, then you need to not forgot to pass className otherwise, the class can't be applied. This is how styled-components work.
className
Sorry, something went wrong.
No branches or pull requests
I used BootstrapProvider like this
And not able to get the theme prop in Container Component.
The text was updated successfully, but these errors were encountered: