Is there a way to create an input textarea that can detect words from an array in this.state and highlight those words as the user types text?
Here is what I'm aiming for:
The list of words: https://i.sstatic.net/eOx7G.png
The input textarea example: https://i.sstatic.net/fAPFL.png
Here is the snippet of code with the array of words:
const arrOfWords = ["disposition", "distress", "vex", "governess", 'intimacy', 'footing', 'unreserve', 'intellectual', 'solitude']