We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee1f96f commit 3ae40e1Copy full SHA for 3ae40e1
example/entry.js
@@ -2,7 +2,11 @@ import React from 'react';
2
import ReactDOM from 'react-dom';
3
import Hello from './hello';
4
5
+let color = {
6
+ sampleColor: 'papayawhip'
7
+}
8
+
9
ReactDOM.render(
- <Hello color='papayawhip'/>,
10
+ <Hello color={color} />,
11
document.getElementById('container')
12
);
example/hello.js
@@ -15,7 +15,7 @@ export default class Hello extends React.Component {
15
text-align: center;
16
17
/* Use props in your CSS */
18
- color: {this.props.color};
+ color: {this.props.color.sampleColor};
19
20
/* Pseudo selectors */
21
&:hover {
0 commit comments