Navigation.tsx 561 Bytes
Newer Older
Matija Obreza's avatar
Matija Obreza committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import React from 'react';
import { Link } from 'react-router-dom';

// interface INavigation extends React.ClassAttributes<any> {}

export default class Navigation extends React.Component<any, any> {

  public render() {
    return (
      <header>
        <nav>
          <ul style={ { display: 'flex', listStyle: 'none' } }>
            <li style={ { marginRight: '20px' } }><Link to="/">Home</Link></li>
            <li style={ { marginRight: '20px' } }><Link to="/api-info">API info</Link></li>
          </ul>
        </nav>
      </header>
    );
  };
}