From e4639dea706c92437eb7efe78b471b8e7071f304 Mon Sep 17 00:00:00 2001 From: Hamir Mahal Date: Sun, 14 Mar 2021 09:39:40 -0700 Subject: [PATCH 1/2] close #38 by differentiating src/index.js file --- src/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 75179f2..facbe04 100644 --- a/src/index.js +++ b/src/index.js @@ -2,5 +2,8 @@ import React from './react'; import ReactDOM from './react-dom'; const Element =
Hello World!
; - +// Looking to complete the first task? +// This is the wrong file for that! +// To complete the first task, go to src/react/index.js. +// This is src/index.js. ReactDOM.render(, document.getElementById('root')); From 128801f81a3390da2ceafde66a584eb4fb8a70f0 Mon Sep 17 00:00:00 2001 From: Hamir Mahal Date: Sat, 20 Mar 2021 09:24:42 -0700 Subject: [PATCH 2/2] add instruction on how to view changes to index.js --- src/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.js b/src/index.js index facbe04..d2633f1 100644 --- a/src/index.js +++ b/src/index.js @@ -6,4 +6,7 @@ const Element =
Hello World!
; // This is the wrong file for that! // To complete the first task, go to src/react/index.js. // This is src/index.js. +// You can view changes to this file by editing it, running +// npm start, and visiting http://localhost:1234. See +// https://github.com/sveinpg/build-your-own-react#playground. ReactDOM.render(, document.getElementById('root'));