Question: get layout props from data fetching methods (gSSP, gSP, gIP)
kylemh opened this issue · comments
Kyle Holmberg commented
How do I pass props returned from getStaticProps
to the layout passed to withLayout
?
Jere & CO commented
The layout receives children
as props, which again has its props, so you can do:
const {yourProp} = children.props