NearSocial / VM

Near Social VM
The Unlicense
36 stars 58 forks source link

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

Open elliotBraem opened 1 year ago

elliotBraem commented 1 year ago

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

lachlanglen commented 11 months ago

+1 would be awesome to resolve this

hsiaosiyuan0 commented 10 months ago

I posted a PR for this issue https://github.com/NearSocial/VM/pull/166