Lesson 8.1 Review
Essential Question
- What is the difference between state and props?
- What is the
useState
hook? What doesuseState
return?
Code Challenge
You will make a MultiLingualGreeting
component:
- It should render as a greeting (perhaps, "Good Morning") in English.
- Beneath this greeting, there should be a series of buttons.
- Each button should correspond to a different language (perhaps, "Spanish", "Haitian Creole", and "Portuguese").
- When a button is clicked, the greeting above should be translated to the appropriate language.