Skip to content

Commit

Permalink
Point to new react docs in react.md (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
usr3 authored Apr 12, 2023
1 parent b5d6e17 commit c73b00e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function Head() {

## Partytown Script

Add the `type="text/partytown"` [prop](/partytown-scripts) for each script that should run from a web worker. The example below is using the React specific way of inlining a script with [dangerouslySetInnerHTML](https://reactjs.org/docs/dom-elements.html#dangerouslysetinnerhtml).
Add the `type="text/partytown"` [prop](/partytown-scripts) for each script that should run from a web worker. The example below is using the React specific way of inlining a script with [dangerouslySetInnerHTML](https://react.dev/reference/react-dom/components/common#dangerously-setting-the-inner-html).

```jsx
<script
Expand Down

1 comment on commit c73b00e

@vercel
Copy link

@vercel vercel bot commented on c73b00e Apr 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.