mirror of
https://gh.wpcy.net/https://github.com/elementor/hello-theme.git
synced 2026-04-30 15:09:17 +08:00
18 lines
387 B
JavaScript
18 lines
387 B
JavaScript
import './hello-admin.scss';
|
|
import { render } from '@wordpress/element';
|
|
import { SettingsPage } from './pages/settings-page.js';
|
|
|
|
const App = () => {
|
|
return <SettingsPage />;
|
|
};
|
|
|
|
document.addEventListener( 'DOMContentLoaded', () => {
|
|
const rootElement = document.getElementById( 'hello-elementor-settings' );
|
|
|
|
if ( rootElement ) {
|
|
render(
|
|
<App />,
|
|
rootElement,
|
|
);
|
|
}
|
|
} );
|