initial commit for having a backup

This commit is contained in:
jenzur
2019-06-13 22:08:08 +02:00
parent f54c447eb6
commit 6e89398bee
189 changed files with 15766 additions and 4367 deletions
+39
View File
@@ -0,0 +1,39 @@
import React, { Component } from 'react';
import { HashRouter as Router, Route } from "react-router-dom";
import Leaderboard from "./Leaderboard/Leaderboard";
import Player from "./Player/Player";
import Maps from "./Maps/Maps";
class App extends Component {
constructor(props) {
super(props);
this.state = {
players: []
};
}
setLeaderboard = (players) => {
this.setState({ players })
}
render() {
return (
<React.Fragment>
<Router>
<Route path={`/leaderboard`} render={(props) => {
return (<Leaderboard setLeaderboard={this.setLeaderboard} />)
}} />
<Route path={`/player/:steamid`} render={(props) => {
return (<Player {...props} />)
}} />
<Route path={`/map/:mapname/:stage`} render={(props) => {
return (<Maps {...props} />)
}} />
</Router>
</React.Fragment>
)
}
}
export default App;