8deb62cc76
The splash screen will soon poll for loading progress info, so we might as well launch App directly from SplashScreen instead of having two separate polls.
13 lines
245 B
JavaScript
13 lines
245 B
JavaScript
//main.js
|
|
var init = function() {
|
|
var canvas = document.getElementById('canvas');
|
|
|
|
ReactDOM.render(
|
|
<SplashScreen message="Connecting" onLoadDone={function() {
|
|
ReactDOM.render(<App/>, canvas);
|
|
}}/>,
|
|
canvas
|
|
);
|
|
};
|
|
|
|
init();
|