DEV Community

Discussion on: Implement Protected Routes in NextJS

Collapse
 
minhhunghuynh1106 profile image
igdev

return (props) => { ... }
What is purpose of "props"? Thanks for your article 😘

Collapse
 
shubhamverma profile image
Shubham Verma • Edited

props is a object that would contain a react component in the form of an object.
So those props are again passed in the <WrappedComp />

You can try console.log(MyReactComponent()) to see the props!