From f84c139c32de6f311eb39c317cfa1cf97c938629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?AntonioContrerasRom=C3=A1n?= Date: Thu, 1 Nov 2018 15:10:54 +0100 Subject: [PATCH] Rename getElementById('root') to main --- 10_Sidebar/readme.md | 6 ++++++ 10_Sidebar/readme_es.md | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/10_Sidebar/readme.md b/10_Sidebar/readme.md index bebad6b..988e8ae 100644 --- a/10_Sidebar/readme.md +++ b/10_Sidebar/readme.md @@ -134,6 +134,12 @@ _./src/index.html_ + ``` +_./src/main.tsx_ + +```diff ++ document.getElementById('main') +``` + - Let's place the component adding it into the `app.tsx`: _./src/app.tsx_ diff --git a/10_Sidebar/readme_es.md b/10_Sidebar/readme_es.md index 7451f99..fcc6822 100644 --- a/10_Sidebar/readme_es.md +++ b/10_Sidebar/readme_es.md @@ -133,6 +133,12 @@ _./src/index.html_ + ``` +_./src/main.tsx_ + +```diff ++ document.getElementById('main') +``` + - Situemos el componente aƱadiendolo dentro de `app.tsx`: _./src/app.tsx_