Not sure how to pass props between parent and child


Stateless Components Inherit From Stateful Components
Learn to pass props from a stateful component to a stateless component
4. Build a Stateless Component Class

All i did was alter the child.js with <h1>Hey, my name is {}!</h1> and got the following error message
link to exercise:
Error message: Child should return <h1>Hey, my name is {}!</h1>


Did you tell React that the Child.js module exports a component?


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.