Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- L X X J
- ā e
- const isCurrentWord = w_idx === completedWords.length;
- const isWronglyTyped = letter !== inputValue[l_idx];
- const shouldBeHighlighted = 1_idx < inputValue.length;
- return (
- <span
- className={"letter ${
- isCurrentWord && shouldBeHighlighted
- ? isWronglyTyped
- L
- : 'green'
- L)
- key={1_idx}>
- S dTas
- </span>
- /Y
Advertisement
Add Comment
Please, Sign In to add comment