-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
50 lines (46 loc) · 1.46 KB
/
index.html
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html>
<head>
<title>Citasync</title>
<script src="https://unpkg.com/react@18/umd/react.development.js" crossorigin></script>
<script src="https://unpkg.com/react-dom@18/umd/react-dom.development.js" crossorigin></script>
<script src="https://unpkg.com/react-router-dom@5/umd/react-router-dom.min.js" crossorigin></script>
</head>
<body>
<div id="root"></div>
<script type="text/babel">
const { useState } = React;
const { BrowserRouter, Route, Link, useNavigate } = ReactRouterDOM;
function Home() {
const navigate = useNavigate();
const handleClick = () => {
navigate('/menu');
};
return (
<div className="app">
<div className="home-form">
<div align="center">
<h1>Bienvenido a nuestra aplicación</h1>
</div>
<div className="button-container">
<button
type="button"
className="button-clicked"
onClick={handleClick}
>
Acceder a la app
</button>
</div>
</div>
</div>
);
}
ReactDOM.render(
<BrowserRouter>
<Route exact path="/" component={Home} />
</BrowserRouter>,
document.getElementById('root')
);
</script>
</body>
</html>