Skip to content

Commit 80e5bd9

Browse files
committed
Fix README
1 parent 3a40d94 commit 80e5bd9

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

README.md

+1-27
Original file line numberDiff line numberDiff line change
@@ -109,33 +109,7 @@ const Foo = ReactCSSOM.inject((props) => (
109109

110110
### Adapting based on props
111111

112-
If you want to set styles based on props, you can do it in 3 ways:
113-
114-
- Using a style tag directly into the component:
115-
```js
116-
export default class Button extends React.Component {
117-
118-
static displayName = 'Button';
119-
120-
render() {
121-
return (
122-
<div>
123-
<style>
124-
{`
125-
.⚛Button > button {
126-
background-color: ${this.props.primary ? 'blue' : 'black'}
127-
}
128-
`}
129-
</style>
130-
<button>
131-
Click me
132-
</button>
133-
</div>
134-
)
135-
}
136-
}
137-
```
138-
112+
If you want to set styles based on props, you can do it in 2 ways:
139113

140114
- Setting a specific class, maybe using css-modules, as we can see here:
141115
```js

0 commit comments

Comments
 (0)