"watch": "vite build --watch"
function App() {
const [auth, setAuth] = useState(!!localStorage.getItem('jwt'));
return (
<Auth.Provider value={[auth, setAuth]}>
{auth && <Authorized />}
{!auth && <Unauthorized />}
</Auth.Provider>
)
}
<div class='slider'>
<h1 class='slider__title'></h1>
<div class='slider__container'>
<h2 class='slider__title-container'><h2>
<p class='slider__subtitle-container></p>
<div class='slider__container-image'>
<img class='slider__img' />
<p class='slider__img-subtitle'></p>
</div>
</div>
</div>
function App() {
return (
<Routes>
<Route path="/users" >
<Route path="" element={<Users />} />
<Route path="elena" element={<Elena />} />
<Route path="oleg" element={<Oleg />} />
</Route>
</Routes>
);
}