Skip to content

Commit 39b6a65

Browse files
committed
Add props to example
1 parent 9460fa2 commit 39b6a65

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,17 @@ export default class Hello extends React.Component {
2323
@css`
2424
font-size: 16px;
2525
text-align: center;
26-
color: #5AF78E;
26+
color: {this.props.color};
2727
font-family: monospace;
2828
`
2929

3030
render () {
31-
return <div>Styled text!</div>
31+
return <div>Styled {this.props.color} text!</div>
3232
}
3333
};
34+
35+
// <Hello color='papayawhip'/>
36+
3437
```
3538

3639
--

0 commit comments

Comments
 (0)