You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
723 B
TypeScript

7 years ago
import * as React from 'react';
import { Router } from 'react-router';
7 years ago
import './App.css';
import createBrowserHistory from 'history/createBrowserHistory';
const customHistory = createBrowserHistory();
7 years ago
const logo = require('./logo.svg');
class App extends React.Component {
render() {
return (
<Router history={customHistory}>
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
</div>
<p className="App-intro">
To get started, edit <code>src/App.tsx</code> and save to reload.
</p>
7 years ago
</div>
</Router>
7 years ago
);
}
}
export default App;