summaryrefslogtreecommitdiff
path: root/frontend/site/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2021-03-15 19:09:37 +0100
committerJules Laplace <julescarbon@gmail.com>2021-03-15 19:09:37 +0100
commit8792e9fe1c7ab76c35f9a18d866880ba3da2c13e (patch)
treefbdc78484f654ec344d10814cb83987c873d4360 /frontend/site/index.js
parent7c15f34186622410e25ee85c01d832e48e012140 (diff)
move frontend site folder. add video support
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..36eeae8
--- /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 'site/app'
+
+import { store, history } from 'site/store'
+
+const container = document.createElement('div')
+container.classList.add('container')
+document.body.appendChild(container)
+
+ReactDOM.render(
+ <Provider store={store}>
+ <App history={history} />
+ </Provider>, container
+)