Test React
This commit is contained in:
23
index.html
23
index.html
@ -39,20 +39,17 @@
|
||||
</script>
|
||||
|
||||
<!-- Scripts -->
|
||||
<script type="text/javascript" src="js/dom.js"></script>
|
||||
<script type="text/javascript" src="js/anim.js"></script>
|
||||
<script type="text/javascript" src="js/app.js"></script>
|
||||
|
||||
<!-- Application bootstrapping -->
|
||||
<script type="text/javascript">
|
||||
Pitaya.start('#pitaya')
|
||||
.then(function() {
|
||||
console.info('Application started.');
|
||||
})
|
||||
.catch(function(err) {
|
||||
console.error(err.stack ? err.stack : err);
|
||||
})
|
||||
;
|
||||
// React context detection workaround
|
||||
global.document = global.window.document;
|
||||
global.navigator = global.window.navigator;
|
||||
|
||||
// Auto transform JSX
|
||||
require('node-jsx').install();
|
||||
|
||||
// Launch application
|
||||
require('./js/app.jsx');
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user