Skip to content

notation .styled(Box)``; does not work #146

@elliotBraem

Description

@elliotBraem

Declaring a styled component and then using it to define another:

const Box = styled.div`
  background-color: white;
  margin: 10px;
`;

const FirstBox = styled(Box)`
  height: 200px;
`;

const SecondBox = styled(Box)`
  height: 400px;
`;

const ThirdBox = styled(Box)`
  flex-grow: 1;
`;

Error:

t.split is not a function

Try it out

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions