mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
14 lines
471 B
TypeScript
14 lines
471 B
TypeScript
import './css/site.css';
|
|
import 'bootstrap';
|
|
import * as React from 'react';
|
|
import * as ReactDOM from 'react-dom';
|
|
import { browserHistory, Router } from 'react-router';
|
|
import routes from './routes';
|
|
|
|
// This code starts up the React app when it runs in a browser. It sets up the routing configuration
|
|
// and injects the app into a DOM element.
|
|
ReactDOM.render(
|
|
<Router history={ browserHistory } children={ routes } />,
|
|
document.getElementById('react-app')
|
|
);
|