Skip to content

Commit

Permalink
react example
Browse files Browse the repository at this point in the history
  • Loading branch information
threepointone committed Nov 15, 2016
1 parent 617e4a8 commit 77908b4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react' //eslint-disable-line
import { render } from 'react-dom'
import { App } from './tweet'
import { App } from './react'
render(<App/>,
document.querySelector('#demo'))
15 changes: 15 additions & 0 deletions examples/react.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from 'react'
import { createElement } from '../src/react' // eslint-disable-line
/* @jsx createElement */

export class App extends React.Component {
render() {
return <Button css={{ color: 'red' }}> hello world</Button>
}
}

class Button extends React.Component {
render() {
return <button {...this.props} />
}
}

0 comments on commit 77908b4

Please sign in to comment.