-
Notifications
You must be signed in to change notification settings - Fork 3
ScoreSummary component
Thomas Harper edited this page Jun 1, 2020
·
1 revision
- Your score
- Total Correct
- Total Incorrect
- Round Accuracy
It accepts from props the following components accordingly:
this.props.scorethis.props.totalCorrectthis.props.totalIncorrect
And finally it calculates the the percentage accuracy as follow:
(totalCorrect / ( totalCorrect + totalIncorrect ) ) * 100
Then it takes this information and prints it to the screen.