opendevs
Effective switch

Happy sad Tommy

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!.


Difficulty

easy

Solve the practice problems to earn    DevCoin image 
Coding Area
Output

Copyright © 2022 opendevs

Learn ● Develop ● Ace
All illustrations by Storyset