Created
November 9, 2017 22:16
-
-
Save indreklasn/9919c99b28ca4a063a3245efc1e4dddd to your computer and use it in GitHub Desktop.
Stylotron
This file contains hidden or 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, { Component } from 'react'; | |
import { styled } from 'styletron-react'; | |
const Wrapper = styled('div', { | |
backgroundColor: 'black' | |
}) | |
const Title = styled('h1', { | |
color: 'white' | |
}) | |
class App extends Component { | |
render() { | |
return ( | |
<Wrapper> | |
<Title>Hello Styletron!<Titleh1> | |
</Wrapper>; | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
<Title>Hello Styletron!<Titleh1>
should be
<Title>Hello Styletron!<Title>