front/src/app.tsx

23 lines
408 B
TypeScript
Raw Normal View History

2024-09-07 11:27:38 +03:00
import React from 'react';
2024-09-20 16:10:14 +03:00
import { BrowserRouter } from 'react-router-dom';
import { Dashboard } from './dashboard';
2024-09-28 12:51:59 +03:00
import { getConfigValue } from "@brojs/cli";
2024-09-20 16:10:14 +03:00
import './index.css'
2024-09-07 11:27:38 +03:00
2024-09-28 12:51:59 +03:00
const BASE_API_URL = getConfigValue("enterfront.api");
// fetch(`${BASE_API_URL}/books/list`)
2024-09-07 11:27:38 +03:00
const App = () => {
2024-09-20 16:10:14 +03:00
return(
<BrowserRouter>
<Dashboard />
</BrowserRouter>
)
}
2024-09-07 11:27:38 +03:00
2024-09-20 16:10:14 +03:00
export default App;