Why did you add keyup event listener instead of just capture the text and convert it to an array then loop through it then add a character to the state using settimeout
Because I wanted to record the pauses between each key stroke exactly like it was written. Also, if I just pushed the new characters to the array, I wouldn't be able to maintain their position if the user went back and edited the text mid sentence.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Why did you add keyup event listener instead of just capture the text and convert it to an array then loop through it then add a character to the state using settimeout
Because I wanted to record the pauses between each key stroke exactly like it was written. Also, if I just pushed the new characters to the array, I wouldn't be able to maintain their position if the user went back and edited the text mid sentence.