Import Result

Apply the ternary operator and show the result and question component.

Import the result component

We created a component called Result in the previous lesson. We must now import the component, pass the props, and include the restartHandler function.

Create the restartHandler function

As we learned earlier, this function changes the values of setQuizFinished to false, setScore to 0 ...