index.js
15 lines
| 1 | import React from "react"; |
| 2 | import ReactDOM from "react-dom/client"; |
| 3 | import App from './App'; |
| 4 | |
| 5 | (function () { |
| 6 | const container = document.getElementById("evf-roles-and-permission"); |
| 7 | |
| 8 | if (!container) return; |
| 9 | |
| 10 | const root = ReactDOM.createRoot(container); |
| 11 | if (root) { |
| 12 | root.render(<App />); |
| 13 | } |
| 14 | })(); |
| 15 |