From f0c8cf0e79f003514fd65a70def5820205955a77 Mon Sep 17 00:00:00 2001
From: Noah Loomans <noahloomans@gmail.com>
Date: Thu, 21 Dec 2017 12:06:41 +0100
Subject: Move to typescript

---
 src/client/react/index.tsx | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 src/client/react/index.tsx

(limited to 'src/client/react/index.tsx')

diff --git a/src/client/react/index.tsx b/src/client/react/index.tsx
new file mode 100644
index 0000000..f0c3226
--- /dev/null
+++ b/src/client/react/index.tsx
@@ -0,0 +1,27 @@
+import * as React from 'react';
+import * as ReactDOM from 'react-dom';
+import { Provider } from 'react-redux';
+import { BrowserRouter as Router, Route } from 'react-router-dom';
+import { createStore, applyMiddleware, compose } from 'redux';
+import logger from 'redux-logger';
+import thunk from 'redux-thunk';
+import reducer from './reducers';
+import LandingPage from './LandingPage';
+
+// eslint-disable-next-line no-underscore-dangle
+// const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
+const store = createStore(
+  reducer,
+  compose(applyMiddleware(logger, thunk)),
+);
+
+ReactDOM.render(
+  <Provider store={store}>
+    <Router>
+      <div>
+        <Route exact path="/" component={LandingPage} />
+      </div>
+    </Router>
+  </Provider>,
+  document.getElementById('root'),
+);
-- 
cgit v1.1

