`import "./index.css";
import App from "./App";
import React from "react";
import ReactDOM from "react-dom";
ReactDOM.render(
,
document.getElementById("root")
);`
this then dropdowns are working. But in the latest version of react, we should use createRoot. But I don't know why the react-draft-wysiwyg all drop-down like image uploads and other dropdowns are not working. Anyone have solved this problem?
Thanks in advance.
`import { StrictMode } from "react"; import { createRoot } from "react-dom/client"; import App from "./App";
const rootElement = document.getElementById("root"); const root = createRoot(rootElement);
root.render(
);`
`import "./index.css"; import App from "./App"; import React from "react"; import ReactDOM from "react-dom";
ReactDOM.render(