aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.tsx
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-09-27 23:14:18 +0100
committerGravatar Joe Banks <[email protected]>2020-09-27 23:14:18 +0100
commit6a492df9ebb270afee94d0f8db596a7e887e631e (patch)
treeabf38b335b83f262a6c1e949d6bba97273edbf9f /src/index.tsx
Initialize project using Create React App
Diffstat (limited to 'src/index.tsx')
-rw-r--r--src/index.tsx17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/index.tsx b/src/index.tsx
new file mode 100644
index 0000000..f5185c1
--- /dev/null
+++ b/src/index.tsx
@@ -0,0 +1,17 @@
+import React from 'react';
+import ReactDOM from 'react-dom';
+import './index.css';
+import App from './App';
+import * as serviceWorker from './serviceWorker';
+
+ReactDOM.render(
+ <React.StrictMode>
+ <App />
+ </React.StrictMode>,
+ document.getElementById('root')
+);
+
+// If you want your app to work offline and load faster, you can change
+// unregister() to register() below. Note this comes with some pitfalls.
+// Learn more about service workers: https://bit.ly/CRA-PWA
+serviceWorker.unregister();