jeff-eng / quizzical

0 stars 0 forks source link

Select trivia answer and update state #5

Closed jeff-eng closed 1 month ago

jeff-eng commented 1 month ago

Seems the best solution at the given time is to create a function in the Main component and pass it down to the Question component which then gets passed down to the grandchild component, AnswerChoice. This is called "lifting up state".