From dbd7e02c7033750a65e7c6ea457c64c3e8029e16 Mon Sep 17 00:00:00 2001 From: Michael Chan Date: Tue, 7 Jan 2020 12:39:34 -0800 Subject: [PATCH] fix lesson 115 where errors get swollowed by global Suspense --- src/index.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/index.js b/src/index.js index d6d54f6..02145f5 100644 --- a/src/index.js +++ b/src/index.js @@ -1,16 +1,11 @@ import React from "react"; import ReactDOM from "react-dom"; -// ↓↓↓ 👋 Update this line to change the lesson ↓↓↓ -let lesson = "complete"; +// ↓↓↓ 👋 Update this line to change the lesson number ↓↓↓ +import Lesson from "./lessons/complete/app"; -const Lesson = React.lazy(() => import(`./lessons/${lesson}/app`)); function App() { - return ( - - - - ); + return ; } const rootElement = document.getElementById("root");