react-typewriter
react-typewriter copied to clipboard
Clear timeout before changing state to avoid race condition
Additionally changed clearInterval() to clearTimeout(). They do the same thing, but the intent is clearer.