diff --git a/src/content/blog/2024/04/01/react-19.md b/src/content/blog/2024/04/01/react-19.md index c7679c236..a2e58f9a4 100644 --- a/src/content/blog/2024/04/01/react-19.md +++ b/src/content/blog/2024/04/01/react-19.md @@ -464,6 +464,9 @@ function BlogPost({post}) { +

+ Eee equals em-see-squared... +

); } @@ -512,7 +515,7 @@ function App() { return <> ... - <-- won't lead to a duplicate stylesheet link in the DOM + // won't lead to a duplicate stylesheet link in the DOM } ``` @@ -536,6 +539,16 @@ function MyComponent() { ) } + +function App() { + + + + ... + // won't lead to duplicate script in the DOM + + +} ``` In all rendering environments async scripts will be deduplicated so that React will only load and execute the script once even if it is rendered by multiple difference components @@ -544,7 +557,7 @@ In Server Side Rendering async scripts will be included in the `` priorize For more details, read the docs for [`