I am building an editor with React Quill. Could you give some advice on how I can change the border style of the editor dynamically? The border color should be changed to red if there is an error in ReactQuill.
The following code is what I tried, but it changes the outline of the whole Quill component.
<div className={{error ? classNameOnError : ""}>
<ReactQuill
theme="snow"
placeholder="Explain about the project in detail."
onChange={(contentHtml) =>
setValues({ ...values, content: contentHtml })
}
onBlur={(e) => validate({ content: e.index })}
/>
</div>