Auto-resizing input field for React