mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Update ReactGrid sample to use newer server-side rendering APIs
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import createBrowserHistory from 'history/lib/createBrowserHistory';
|
||||
import ReactApp from './components/ReactApp.jsx';
|
||||
import { browserHistory } from 'react-router';
|
||||
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'));
|
||||
ReactDOM.render(<ReactApp history={ browserHistory } />, document.getElementById('react-app'));
|
||||
|
||||
Reference in New Issue
Block a user