React component to render tags from a text input