И
Size: a a a
И
AU
0
AU
И
А
AU
А
import { Route, Redirect } from "react-router-dom";ну как то так по идее
const ProtectedRoute = ({ component: Component, auth, ...rest }) => (
<Route {...rest} render={(props) => (
auth
? <Component {...props} />
: <Redirect to='/login' />
)} />
)
AC
О
А
K
А
Д
ИЗ
ИЗ
Д
А
onClick={() => handleClick(id)}
Д
YE