From d09194f05a372e3ed136aa288ae76cae8c1dc641 Mon Sep 17 00:00:00 2001
From: Jarred Sumner <jarred@jarredsumner.com>
Date: Sun, 20 Jun 2021 18:15:13 -0700
Subject: Support live-reload and fallback

Former-commit-id: c3f9d77391589b65951616a632af87107fba469f
---
 demos/react-fast-refresh-test/src/index.tsx | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

(limited to 'demos/react-fast-refresh-test/src/index.tsx')

diff --git a/demos/react-fast-refresh-test/src/index.tsx b/demos/react-fast-refresh-test/src/index.tsx
index 3db53a67f..348bd80f2 100644
--- a/demos/react-fast-refresh-test/src/index.tsx
+++ b/demos/react-fast-refresh-test/src/index.tsx
@@ -1,15 +1,10 @@
 import ReactDOM from "react-dom";
 import React from "react";
-import { Main } from "./main";
+import { App } from "./components/app";
 import classNames from "classnames";
 
-const Base = ({}) => {
-  const name = decodeURIComponent(location.search.substring(1));
-  return <Main productName={name || "Bundler"} />;
-};
-
 function startReact() {
-  ReactDOM.render(<Base />, document.querySelector("#reactroot"));
+  ReactDOM.render(<App />, document.querySelector("#reactroot"));
 }
 
 globalThis.addEventListener("DOMContentLoaded", () => {
@@ -17,4 +12,4 @@ globalThis.addEventListener("DOMContentLoaded", () => {
 });
 startReact();
 
-export { Base };
+export { App };
-- 
cgit v1.2.3

