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
Since upgrading to 4.0 styled(Component) no longer returns a react component, but instead returns an object literal:
import * as React from 'react' import styled from 'styledComponents' import { LauncherContainer, WindowContainer } from 'components' import { Flex } from 'components/_utility' export interface Props { className?: string, } const Component = ({ className }: Props) => ( <div className={className} > <Flex column alignItems='flex-end'> <WindowContainer /> <LauncherContainer /> </Flex> </div> ) export const FrameDisplay = styled(Component)` background-color: red; `
Error:
The text was updated successfully, but these errors were encountered:
Dup of #2106. You'll need to hold off on your 4.0 upgrade until react-redux supports React.forwardRef.
react-redux
React.forwardRef
Sorry, something went wrong.
No branches or pull requests
Since upgrading to 4.0 styled(Component) no longer returns a react component, but instead returns an object literal:
Error:
The text was updated successfully, but these errors were encountered: