Skip to content

Commit

Permalink
[typo] syntax looks wrong reactjs#6633
Browse files Browse the repository at this point in the history
  • Loading branch information
felipe-b-oliveira committed Feb 17, 2024
1 parent c608570 commit 4cffeeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content/reference/react-dom/components/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ React's extensions to `<style>` are currently only available in React's canary a
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.

```js
<style> p { color: red; } </style>
<style>{` p { color: red; } `}</style>
```

</Intro>
Expand All @@ -30,7 +30,7 @@ The [built-in browser `<style>` component](https://developer.mozilla.org/en-US/d
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.

```js
<style> p { color: red; } </style>
<style>{` p { color: red; } `}</style>
```

[See more examples below.](#usage)
Expand Down

0 comments on commit 4cffeeb

Please sign in to comment.