From 3cf70771cb45cc16ec33ffe44e7a1a4799d8f395 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 23 Jun 2020 23:18:07 +0200 Subject: adding web app base --- animism-align/frontend/app.js | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 animism-align/frontend/app.js (limited to 'animism-align/frontend/app.js') diff --git a/animism-align/frontend/app.js b/animism-align/frontend/app.js new file mode 100644 index 0000000..1ce80c2 --- /dev/null +++ b/animism-align/frontend/app.js @@ -0,0 +1,35 @@ +import React, { Component } from 'react' +import { ConnectedRouter } from 'connected-react-router' +import { Route } from 'react-router' + +// import actions from './actions' + +import * as views from './views' + +const viewList = Object.keys(views).map(name => { + const view = views[name] + let path, exact = false + path = '/' + name + return ( + + ) +}) + +export default class App extends Component { + componentDidMount() { + } + render() { + return ( + +
+ {viewList} + { + // redirect to index!! + setTimeout(() => this.props.history.push('/index'), 10) + return null + }} /> +
+
+ ) + } +} -- cgit v1.2.3-70-g09d2