web-apps/apps/documenteditor/mobile/src/js/app.js

32 lines
727 B
JavaScript
Raw Normal View History

2020-07-31 17:33:13 +00:00
// Import React and ReactDOM
import React from 'react';
import ReactDOM from 'react-dom';
// Import Framework7
import Framework7 from 'framework7/framework7-lite.esm.bundle.js';
// Import Framework7-React Plugin
import Framework7React from 'framework7-react';
import jQuery from 'jquery';
window.jQuery = jQuery;
window.$ = jQuery;
// Import Framework7 Styles
import 'framework7/css/framework7.bundle.css';
// Import Icons and App Custom Styles
import '../css/icons.css';
import '../css/app.less';
// Import App Component
import App from '../components/app.jsx';
// Init F7 React Plugin
Framework7.use(Framework7React)
// Mount React App
ReactDOM.render(
React.createElement(App),
document.getElementById('app'),
);