diff options
| author | SOGYO\bvdoord <bvdoord@sogyo.nl> | 2021-01-26 11:22:58 +0100 |
|---|---|---|
| committer | SOGYO\bvdoord <bvdoord@sogyo.nl> | 2021-01-26 11:22:58 +0100 |
| commit | f382ec567e1292cedee7c01e721ddc38bdc4dc4e (patch) | |
| tree | 3012b3343d24c4d52f4370ca1f2efc4c78dbd84f /client/src/index.tsx | |
| parent | 9fb9913bc5ccc49d738481fa71c5ba75c43ed532 (diff) | |
Front-end met Snowpack toegevoegd
Diffstat (limited to 'client/src/index.tsx')
| -rw-r--r-- | client/src/index.tsx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/client/src/index.tsx b/client/src/index.tsx new file mode 100644 index 0000000..c92ef7e --- /dev/null +++ b/client/src/index.tsx @@ -0,0 +1,15 @@ +import * as React from "react"; +import ReactDOM from "react-dom"; +import { App } from "./App"; + +ReactDOM.render( + <App/>, + document.getElementById("root") +) + +// Hot Module Replacement (HMR) - Remove this snippet to remove HMR. +// Learn more: https://www.snowpack.dev/#hot-module-replacement +const hotMudleReplacement = import.meta.hot; +if (hotMudleReplacement) { + hotMudleReplacement.accept(); +} |
