forked from JonasFranzDEV/gitea-github-migrator
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
548 B
19 lines
548 B
import * as React from "react";
|
|
import * as ReactDOM from "react-dom";
|
|
import { hot } from "react-hot-loader";
|
|
|
|
import { HashRouter as Router, Route } from "react-router-dom";
|
|
import { GitHubButton } from "./components/GitHubButton";
|
|
import { WelcomePage } from "./components/WelcomePage";
|
|
|
|
ReactDOM.render(
|
|
<Router>
|
|
<div>
|
|
<Route exact path="/" component={WelcomePage} />
|
|
<Route path="/callback" component={GitHubButton} />
|
|
</div>
|
|
</Router>,
|
|
document.getElementById("example")
|
|
);
|
|
|
|
export default hot(module)(WelcomePage);
|
|
|