Thanks for the video, i use a ProtectedRoute component and wrap my route checking the permissions, is this HOC too right or some other pattern? Simple Example: const ProtectedRoute = ({children}) => { if (permitted) return children; else return Not permitted }
This method is very common to handle protected routes. Of course they are always many different ways to do a thing, as long your method is safe and works, you are good. Will create special video to handle protected routes 😉
Great video, good explanation, thank u
The video is duplicated during editing or exporting, make sure u look into the issue
Thank you, maybe miss that out. Will fix that Asap
unfortunately i can't fix this one, luckily just duplicate so it should be fine, but will double check my next ones, thanks for the heads up
@@codingwithlulu you got this,👍 keep it up
Thanks for the video, i use a ProtectedRoute component and wrap my route checking the permissions, is this HOC too right or some other pattern?
Simple Example:
const ProtectedRoute = ({children}) => {
if (permitted) return children;
else return Not permitted
}
This method is very common to handle protected routes. Of course they are always many different ways to do a thing, as long your method is safe and works, you are good. Will create special video to handle protected routes 😉
@@codingwithlulu thanks!