This is number memory game in Reactjs
The first number appears randomly. For example: 123.
The second number is what I will enter: 123.
That is correct.
So if I enter incorrectly for example 124, then 4 should be crossed out.
output should be like that:
<div>
<span>1</span>
<span>2</span>
<span className="wrong">4</span>
</div>
More example:
random_num: 4573
input: 4674
output: 4674
random_num: 4573
input: 4674761
output: 4674761
random_num: 123
input: 123456
output: 123456