From 88818acbc588ec43382e5478a165afbe5ac31fd7 Mon Sep 17 00:00:00 2001 From: Josh Story Date: Wed, 24 Apr 2024 22:45:38 -0700 Subject: [PATCH] nits --- src/content/blog/2024/04/01/react-19.md | 43 ++++++++++--------------- 1 file changed, 17 insertions(+), 26 deletions(-) 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 [`