diff options
author | 2021-06-20 18:15:13 -0700 | |
---|---|---|
committer | 2021-06-20 18:15:13 -0700 | |
commit | c3f9d77391589b65951616a632af87107fba469f (patch) | |
tree | 1dadcd697f7608747b2c4fb9406a008a0546b0bf /demos/react-fast-refresh-test/src/components/app.tsx | |
parent | cbb6f8b1a94e504cce875f90b45416177c9ac1d3 (diff) | |
download | bun-c3f9d77391589b65951616a632af87107fba469f.tar.gz bun-c3f9d77391589b65951616a632af87107fba469f.tar.zst bun-c3f9d77391589b65951616a632af87107fba469f.zip |
Support live-reload and fallback
Diffstat (limited to 'demos/react-fast-refresh-test/src/components/app.tsx')
-rw-r--r-- | demos/react-fast-refresh-test/src/components/app.tsx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/demos/react-fast-refresh-test/src/components/app.tsx b/demos/react-fast-refresh-test/src/components/app.tsx new file mode 100644 index 000000000..2edc02545 --- /dev/null +++ b/demos/react-fast-refresh-test/src/components/app.tsx @@ -0,0 +1,14 @@ +import * as React from "react"; +import { Button } from "./Button"; +import { RenderCounter } from "./RenderCounter"; +export function App() { + return ( + <RenderCounter name="App"> + <div className="AppRoot"> + <h1>This is the root element</h1> + + <Button>Click</Button> + </div> + </RenderCounter> + ); +} |