// PrivateRoute.js
const PrivateRoute = props => {
const { user } = useContext(AuthContext);
let { as: Comp, ...props } = props;
return user ? <Comp {...props} /> : <Login />;
}
What does the syntax let = { as:comp, ...props } = props; mean? I'm aware of destructuring assignment I just need an english translation.