EN
React - disable textarea spell check
3
points
In this article, we would like to show you how to disable textarea spell check in React.
Quick solution:
<textarea spellCheck={false} />
Example preview:
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);