generated from woliveiras/vite-react-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
32 lines (29 loc) · 921 Bytes
/
App.tsx
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
import reactLogo from "./assets/react.svg";
import viteLogo from "/vite.svg";
import "./App.css";
const baseEnvExample = import.meta.env.VITE_ENV_EXAMPLE_ALL;
const devEnvExample = import.meta.env.VITE_ENV_EXAMPLE_DEV;
const prodEnvExample = import.meta.env.VITE_ENV_EXAMPLE_PROD;
function App() {
return (
<>
<div>
<a href="https://vitejs.dev" target="_blank">
<img src={viteLogo} className="logo" alt="Vite logo" />
</a>
<a href="https://react.dev" target="_blank">
<img src={reactLogo} className="logo react" alt="React logo" />
</a>
</div>
<h1>Vite + React</h1>
<div className="card">
<p>{baseEnvExample}</p>
<p>{devEnvExample ? devEnvExample : prodEnvExample}</p>
</div>
<p className="read-the-docs">
Click on the Vite and React logos to learn more
</p>
</>
);
}
export default App;