Skip to content

Commit

Permalink
fix lesson 115 where errors get swollowed by global Suspense
Browse files Browse the repository at this point in the history
  • Loading branch information
chantastic committed Jan 7, 2020
1 parent 3ee17c0 commit dbd7e02
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -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 (
<React.Suspense fallback="Loading Lesson...">
<Lesson />
</React.Suspense>
);
return <Lesson />;
}

const rootElement = document.getElementById("root");
Expand Down

0 comments on commit dbd7e02

Please sign in to comment.