From 8f4a110170748971f9b591a73a356d1530d66bc5 Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Date: Tue, 20 Aug 2024 09:18:06 +0100 Subject: [PATCH 1/2] Updating HTML babel example to valid HTML (W3C) and new react syntax --- public/html/single-file-example.html | 34 ++++++++++++++-------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/public/html/single-file-example.html b/public/html/single-file-example.html index 380a169f57b..3afb145f8f7 100644 --- a/public/html/single-file-example.html +++ b/public/html/single-file-example.html @@ -1,36 +1,36 @@ - + - + Hello World - - + + - - + +
From 67f0ae2f1bc3dec63c04a6a401ed7844f7e77b51 Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Date: Tue, 20 Aug 2024 09:18:37 +0100 Subject: [PATCH 2/2] linking public html to react learn installation --- src/content/learn/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/learn/installation.md b/src/content/learn/installation.md index 7251fc31b6b..dc5c45e9d60 100644 --- a/src/content/learn/installation.md +++ b/src/content/learn/installation.md @@ -41,7 +41,7 @@ Most pages in the React documentation contain sandboxes like this. Outside of th ### Try React locally {/*try-react-locally*/} -To try React locally on your computer, [download this HTML page.](https://gist.githubusercontent.com/gaearon/0275b1e1518599bbeafcde4722e79ed1/raw/db72dcbf3384ee1708c4a07d3be79860db04bff0/example.html) Open it in your editor and in your browser! +To try React locally on your computer, [download this HTML page.](../html/single-file-example.html) Open it in your editor and in your browser! ## Start a new React project {/*start-a-new-react-project*/}