import App from './components/App';
import domReady from '@wordpress/dom-ready';
import { createRoot } from '@wordpress/element';
// import { Registration } from './components/registration';
import React from 'react';
// import * as css from './components/styles/index.css';
// import ReactDOM from 'react-dom';

// reactdom alternative
// ReactDOM.render(
// 	<React.StrictMode>
// 	  <App />
// 	</React.StrictMode>,
// 	document.getElementById('web-engine-captcha-settings')
// );

domReady( () => {
	// const thecss = css;
	const root = createRoot(
		document.getElementById( 'web-engine-captcha-settings' )!
	);
	root.render( <App /> );
} );
