Happy sad Tommy
Solidify your knowledge of Conditional Rendering by solving this problem.
Your React component takes a boolean prop called isHappy
and renders a different message depending on the value of that prop. If the prop is true, render a p
tag with value that says Hey, I am Happy Today!
, If the prop is false, render a p
tag with value that says Hey, I am Sad Today!
.
Solve this easy problem to earn 1