Languages
[Edit]
EN

React - disable textarea spell check

3 points
Created by:
Lily
548

In this article, we would like to show you how to disable textarea spell check in React.

Quick solution:

<textarea spellCheck={false} />

Example preview: 

Textarea spell checking disabled under React.
Textarea spell checking disabled under React.

Practical example

In this example, we disable textarea element spell check by setting spellCheck property to false value.

// ONLINE-RUNNER:browser;

// import React from 'react';

const App = () => {
    return (
        <div>
          <textarea
              spellCheck={false}
              rows={5}
              cols={30}
              placeholder='Type something here...'
          />
        </div>
    );
};

const root = document.querySelector('#root');
ReactDOM.render(<App />, root);

 

See also

  1. HTML - disable textarea spell check
  2. JavaScript - disable textarea spell check

Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join