reactjs remove spellcheck attribute

前端 未结 1 597
甜味超标
甜味超标 2021-01-18 01:51

I\'m using ReactJS to render my DOM.

I want to add the spellcheck=\"false\" attribute on a text input, so I do this:

render() {
    retu         


        
1条回答
  •  孤街浪徒
    2021-01-18 02:33

    Try using spellCheck instead. (Note the capital C)

    The docs are good for explaining how default HTML attributes should be referenced in React.

    0 讨论(0)
提交回复
热议问题