mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Add ReactSpa template
This commit is contained in:
12
templates/ReactSpa/ClientApp/boot.tsx
Normal file
12
templates/ReactSpa/ClientApp/boot.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import 'bootstrap/dist/css/bootstrap.css';
|
||||
import './css/site.css';
|
||||
|
||||
import * as React from 'react';
|
||||
import * as ReactDOM from 'react-dom';
|
||||
import { browserHistory, Router } from 'react-router';
|
||||
import { routes } from './routes';
|
||||
|
||||
ReactDOM.render(
|
||||
<Router history={ browserHistory } children={ routes } />,
|
||||
document.getElementById('react-app')
|
||||
);
|
||||
Reference in New Issue
Block a user