Skip to content

Instantly share code, notes, and snippets.

@indreklasn
Created November 9, 2017 22:16
Show Gist options
  • Save indreklasn/9919c99b28ca4a063a3245efc1e4dddd to your computer and use it in GitHub Desktop.
Save indreklasn/9919c99b28ca4a063a3245efc1e4dddd to your computer and use it in GitHub Desktop.
Stylotron
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>;
)
}
}
@brandon-pereira
Copy link

<Title>Hello Styletron!<Titleh1>

should be

<Title>Hello Styletron!<Title>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment