summaryrefslogtreecommitdiff
path: root/frontend/site/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-07-11 00:50:00 +0200
committerJules Laplace <julescarbon@gmail.com>2020-07-11 00:50:00 +0200
commit91e8fdb99e321496c54288fe5a3db6397c768c10 (patch)
tree2bb82323466c7895eb705138e561278b02ce8ca2 /frontend/site/index.js
parent2001ddd7e2a8926ec97fdd4d5c73b2d4e5b293de (diff)
building basic site. need to include cursors, etc
Diffstat (limited to 'frontend/site/index.js')
-rw-r--r--frontend/site/index.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/frontend/site/index.js b/frontend/site/index.js
new file mode 100644
index 0000000..6f1a0a5
--- /dev/null
+++ b/frontend/site/index.js
@@ -0,0 +1,17 @@
+import React from 'react'
+import ReactDOM from 'react-dom'
+import { Provider } from 'react-redux'
+
+import App from './app'
+
+import { store, history } from './store'
+
+const container = document.createElement('div')
+container.classList.add('container')
+document.body.appendChild(container)
+
+ReactDOM.render(
+ <Provider store={store}>
+ <App history={history} />
+ </Provider>, container
+)