-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
45 lines (35 loc) · 1.1 KB
/
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
36
37
38
39
40
41
42
43
44
45
//'use strict';
import ReactDOM from 'react-dom';
import React,{Component} from 'react';
//import injectTapEventPlugin from 'react-tap-event-plugin';
import RootComponent from './src/RootComponent';
//injectTapEventPlugin();
class ReactWebpackCordova extends Component{
render(){
return (
<div>
<RootComponent />
</div>
)
}
};
ReactDOM.render(
<ReactWebpackCordova />,
document.getElementById('container')
);
// Import react dependencies
/*import React from 'react';
import ReactDOM from 'react-dom';
import { render } from 'react-dom';
import RootComponent from './src/RootComponent';
import {Router, Route, browserHistory, IndexRoute} from 'react-router';
import MobileLayout from './src/MobileLayout';
import MediaQuery from 'react-responsive';
// Pass JSON data as properties to DataBlock component
//ReactDOM.render(<RootComponent />, document.getElementById('container'));
render(
<Router history={browserHistory}>
<Route path="/" component={RootComponent} />
<Route path="/mobile" component={MobileLayout} />
</Router>, document.getElementById('container')
);*/