32 lines
727 B
JavaScript
32 lines
727 B
JavaScript
|
// 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'),
|
||
|
);
|