Prevent return character in a multiline InputText updating the input's value?

前端 未结 0 1351
臣服心动
臣服心动 2021-01-14 02:48

I have a simple multiline text input:

const [text, setText] = React.useState(\'\')

const submit = () => {
    // submit the form
    setText(\'\')
}

<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题