Created
August 9, 2020 17:56
-
-
Save ms314006/526130e5bcb26c6715e87845bb6e26f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import styled from 'styled-components'; | |
const Title = styled.div` | |
font-size: 32px; | |
color: ${props => props.color ? props.color : '#0f4c75'}; | |
`; | |
const App = () => ( | |
<> | |
<Title>Hello world!</Title> | |
<Title color="#fdcb9e">Hello world!</Title> | |
</> | |
); | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment