FrontPastel/frontend/src/main.jsx

27 lines
550 B
JavaScript

import React from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import { createRoot } from 'react-dom/client';
import AppInicio from './AppInicio.jsx'
import PersPastel1 from './PersPastel1.jsx'
createRoot(document.getElementById('root')).render(
<React.StrictMode>
<Router>
<Routes>
<Route path = "/" element = {<AppInicio/>}/>
<Route path = "/PersonalizarPastel/PastelArcoiris" element = {<PersPastel1/>}/>
</Routes>
</Router>
</React.StrictMode>,
);