xxxxxxxxxx
import RichTextEditor from "react-rte";
import { useState } from "react";
const AddBlog = () => {
const [desc, setDesc] = useState(RichTextEditor.createEmptyValue());
const handleDescription = (value) => {
setDesc(value);
};
return (
<div>
<h3 className="mb-4">Add Blog</h3>
<div>
<RichTextEditor
value={desc}
onChange={(e) => {
handleDescription(e);
}}
/>
</div>
);
};
export default AddBlog;