image2text

Untitled

Oct 4th, 2019
505
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. L X X J
  2. ā€˜ e
  3. const isCurrentWord = w_idx === completedWords.length;
  4. const isWronglyTyped = letter !== inputValue[l_idx];
  5. const shouldBeHighlighted = 1_idx < inputValue.length;
  6. return (
  7. <span
  8. className={"letter ${
  9. isCurrentWord && shouldBeHighlighted
  10. ? isWronglyTyped
  11. L
  12. : 'green'
  13. L)
  14. key={1_idx}>
  15. S dTas
  16. </span>
  17. /Y
Advertisement
Add Comment
Please, Sign In to add comment