lbry-desktop/js/main.js
Alex Liebowitz 8deb62cc76 Let SplashScreen trigger render of App
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.
2016-04-14 01:49:00 -04:00

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();