-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.js
35 lines (32 loc) · 863 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import React, {Component} from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import Store from './imports/store';
import RoverApp from './imports/rover-app';
import xtests from './imports/xtests';
import initReactFastclick from 'react-fastclick';
initReactFastclick();
class RoverAppRoot extends Component {
componentWillMount() {
//window.xtests = xtests;
window.history.replaceState({scene: 'first',bottom: true}, 'first');
Reloader.configure({check: false, refresh: 'start'} );
}
componentWillUnmount() {
}
render () {
return (
<div className='rover-top-container'>
<Provider store={Store}>
<RoverApp/>
</Provider>
</div>
);
}
}
Meteor.startup(()=> {
ReactDOM.render(
<RoverAppRoot />,
document.getElementById('app')
);
});