Allow user to insert references in text.

I want the user to be able to insert inline references in a text he is writing. On Facebook for example, a user can write a comment that includes a mention of a friend.

Are there React libraries that help me achieve that?