Text input with auto resizable width - React.js