aboutsummaryrefslogtreecommitdiff
path: root/src/index.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-06-06 22:05:34 +0300
committereug-vs <eug-vs@keemail.me>2020-06-06 22:08:38 +0300
commitcb4c78bd4ea3c79c5cacbfd474ecddcf8db658ef (patch)
tree2f85150877c10cbcee64f9cea6ff2bd0ce9ba072 /src/index.tsx
parenta783dc0d87967b8b5f46e04fed4e7b1f4247b7ec (diff)
downloadwhich-ui-cb4c78bd4ea3c79c5cacbfd474ecddcf8db658ef.tar.gz
feat: implement basic header
Diffstat (limited to 'src/index.tsx')
-rw-r--r--src/index.tsx24
1 files changed, 19 insertions, 5 deletions
diff --git a/src/index.tsx b/src/index.tsx
index fa9a15a..e858a17 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -1,7 +1,21 @@
-import React from 'react';
+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'));
-ReactDOM.render(
- <h1> Hello, world! </h1>,
- document.getElementById('root')
-);