pdf-to-markdown/oldSrc/javascript/index.jsx

19 lines
420 B
React
Raw Normal View History

2017-01-06 20:49:37 +01:00
import React from 'react';
import ReactDOM from 'react-dom';
import 'bootstrap/dist/css/bootstrap.css';
2017-01-07 11:38:06 +01:00
import '../css/styles.css';
2017-01-06 20:49:37 +01:00
import App from './components/App.jsx';
import AppState from './models/AppState.jsx';
function render(appState) {
ReactDOM.render(<App appState={ appState } />, document.getElementById('main'));
}
const appState = new AppState({
renderFunction: render,
});
appState.render()