]> Untitled Git - lemmy-ui.git/blob - src/client/components/App/App.tsx
Adding prettier
[lemmy-ui.git] / src / client / components / App / App.tsx
1 import { Component, render } from 'inferno';
2 import { Link, Route, StaticRouter, Switch } from 'inferno-router';
3 import About from '../About/About';
4 import Home from '../Home/Home';
5 interface IState {}
6 interface IProps {
7   name: string;
8 }
9 export default class App extends Component<IProps, IState> {
10   constructor(props) {
11     super(props);
12   }
13   public render() {
14     return (
15       <div>
16         <div>
17           <h3>{this.props.name}</h3>
18           <div>
19             <Link to="/Home">
20               <p>Home</p>
21             </Link>
22           </div>
23           <div>
24             <Link to="/About" className="link">
25               <p>About</p>
26             </Link>
27           </div>
28         </div>
29         <div>
30           <Switch>
31             <Route exact path="/Home" component={Home} />
32             <Route exact path="/About" component={About} />
33           </Switch>
34         </div>
35       </div>
36     );
37   }
38 }