-
a long discussion with @rafaelalmeidatk led me to refactor my code with a new understanding of matters but I now have a similar but related problem. I have a page defined like this: export async function getServerSideProps() {
return {props: {data: 'test'}}
}
export default ({data}) => (
<div>
data: [{data}]
</div>
) and have defined export default ({Component, Props}) => {
return (
<Component {...Props} />
)
} and when I call the page the output shows:
when it should show:
and I have further noticed that if I remove the can anyone help? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
ah. figured it out. the parameters to the component are named. I can't call them whatever I want. it has to be: export default ({Component, pageProps}) => { |
Beta Was this translation helpful? Give feedback.
ah. figured it out. the parameters to the component are named. I can't call them whatever I want. it has to be: