-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
617e4a8
commit 77908b4
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
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
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')) |
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
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} /> | ||
} | ||
} |