Let's take the simple case of a barebones editable <div> with contenteditable="true":
<div contenteditable="true">
Edit this
</div>
The user is able to input/edit/delete the contents of this <div> element.
For certain input forms, if the user inputs text greater than some limit of characters, the characters added over this limit will be highlighted (warning the user to stop adding text).
How could I achieve something like this with React?
I think <span> could be used to highlight the text, but I cannot conceptualize how to begin the highlighting after the character count limit has been reached.
Please let me know if the question is clear. Thank you for the help.