1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-30 13:41:57 +02:00
onion/js/app.js
2015-05-18 09:29:51 +02:00

23 lines
450 B
JavaScript

'use strict';
import React from 'react';
import Router from 'react-router';
import HelloApp from './components/hello_app';
import ArtworkList from './components/artwork_list';
var Route = Router.Route;
var routes = (
<Route handler={HelloApp}>
<Route path="artworks" handler={ArtworkList} />
</Route>
);
Router.run(routes, Router.HashLocation, (HelloApp) => {
React.render(
<HelloApp />,
document.getElementById('main')
);
});