Irfandeva
KPCKevin Powell - Community
•Created by Irfandeva on 2/18/2024 in #front-end
How can I set browser url manually in react js
I'm using outlet component to render child components, I have also set up ProtectedRout component which wraps <Outlet> component, ProtectedRout returns children component if isAuthenticated is true and returns <Login/> components if it is false, It works without any problem, Since I'm directly returning login component instead of using <Navigate to ="/login/> the url in the browser address bar doesn't change, but I want it to be mydomain/login, How can I achieve this?
const ProtectedRout = ({children})=>{
const {isAuthenticated}= useAuth()
return (isAuthenticated ? children : <Login/>)
}
1 replies
KPCKevin Powell - Community
•Created by Irfandeva on 3/27/2023 in #front-end
How to stop browser from applying system default theme to my site?
Some browsers like via browser are applying system default theme to my site, how can I prevent this.
5 replies
KPCKevin Powell - Community
•Created by Irfandeva on 3/5/2023 in #front-end
Image doesn't fit in its parent div properly
47 replies
KPCKevin Powell - Community
•Created by Irfandeva on 10/26/2022 in #front-end
CSS -webkit- , -ms- prfixes
How to know which css properties should be -webkit-, -ms- etc... prefixed, I'm confused here, is there any place where I can learn about all these properties which need prefix to work properly across all browsers.
20 replies