mirror of
https://github.com/elementor/hello-theme.git
synced 2026-03-05 14:52:51 +08:00
18 lines
377 B
JavaScript
18 lines
377 B
JavaScript
import { createRoot } from 'react-dom/client';
|
|
import { TopBar } from './components/top-bar/top-bar';
|
|
|
|
const App = () => {
|
|
return (
|
|
<TopBar />
|
|
);
|
|
};
|
|
|
|
document.addEventListener( 'DOMContentLoaded', () => {
|
|
const container = document.getElementById( 'ehe-admin-top-bar-root' );
|
|
|
|
if ( container ) {
|
|
const root = createRoot( container );
|
|
root.render( <App /> );
|
|
}
|
|
} );
|
|
|