aboutsummaryrefslogtreecommitdiff
path: root/src/index.tsx
blob: e858a17e94d6bf6bfedd2413230d94fee9bcddc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import React, { useState } from 'react';
import ReactDOM from 'react-dom';
import { CssBaseline } from '@material-ui/core';
import 'typeface-roboto';

import Header from './Header/Header';

const App: React.FC = () => {
  const [page, setPage] = useState('feed');

  return (
    <>
      <CssBaseline />
      <Header page={page} setPage={setPage} />
      <h1> Hello, world! </h1>
    </>
  );
};

ReactDOM.render(<App />, document.getElementById('root'));