mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
10 lines
438 B
JavaScript
10 lines
438 B
JavaScript
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
import createBrowserHistory from 'history/lib/createBrowserHistory';
|
|
import ReactApp from './components/ReactApp.jsx';
|
|
import 'bootstrap/dist/css/bootstrap.css';
|
|
|
|
// In the browser, we render into a DOM node and hook up to the browser's history APIs
|
|
var history = createBrowserHistory();
|
|
ReactDOM.render(<ReactApp history={ history } />, document.getElementById('react-app'));
|