blob: 779f0d08e600285e4814ee6d72bbd842e3b5d09a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
import React from 'react';
import ReactDOM from 'react-dom';
import 'tailwindcss/tailwind.css';
import Paper from './components/Paper';
import Header from './components/Header';
import Button from './components/Button';
const navigation = [
{ name: 'Главная', route: '/'},
{ name: 'Товары', route: '/products'}
];
const App: React.FC = () => (
<>
<Header navigation={navigation} />
<Paper>
<p>
Привет, мир!
<Button>Нажми меня</Button>
<Button variant="outlined">Отменить</Button>
</p>
</Paper>
</>
);
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
|