Skip to content

Commit 35530ee

Browse files
[typo] syntax looks wrong #6633 (#6641)
1 parent 156765f commit 35530ee

File tree

1 file changed

+2
-2
lines changed
  • src/content/reference/react-dom/components

1 file changed

+2
-2
lines changed

src/content/reference/react-dom/components/style.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ React's extensions to `<style>` are currently only available in React's canary a
1414
The [built-in browser `<style>` component](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style) lets you add inline CSS stylesheets to your document.
1515

1616
```js
17-
<style> p { color: red; } </style>
17+
<style>{` p { color: red; } `}</style>
1818
```
1919

2020
</Intro>
@@ -30,7 +30,7 @@ The [built-in browser `<style>` component](https://developer.mozilla.org/en-US/d
3030
To add inline styles to your document, render the [built-in browser `<style>` component](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style). You can render `<style>` from any component and React will [in certain cases](#special-rendering-behavior) place the corresponding DOM element in the document head and de-duplicate identical styles.
3131

3232
```js
33-
<style> p { color: red; } </style>
33+
<style>{` p { color: red; } `}</style>
3434
```
3535

3636
[See more examples below.](#usage)

0 commit comments

Comments
 (0)