Skip to content

Instantly share code, notes, and snippets.

@KevinVR
Created August 15, 2021 12:49
Show Gist options
  • Save KevinVR/42c9ae7b38e35f922076ac3b70fb5700 to your computer and use it in GitHub Desktop.
Save KevinVR/42c9ae7b38e35f922076ac3b70fb5700 to your computer and use it in GitHub Desktop.
import styled from 'styled-components';
import Text from './Text.jsx';
function MyComponent() {
const BigRedText = styled(Text)`
font-size: 40px;
color: red;
`;
return <BigRedText>
This should be a big red text!
</BigRedText>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment