/**
 * WordPress dependencies
 */
import { render } from '@wordpress/element';
import domReady from '@wordpress/dom-ready';

/**
 * Internal dependencies
 */
import Container from './components/container';

domReady( () => {
	render(
		<Container />,
		document.getElementById( 'amp-qa-tester-build-selector' )
	);
} );

/**
 * WordPress dependencies
 */
import { render } from '@wordpress/element';
import domReady from '@wordpress/dom-ready';

/**
 * Internal dependencies
 */
import Container from './components/container';

domReady( () => {
	const root = document.getElementById( 'amp-qa-tester-build-selector' );

	if ( root ) {
		render( <Container />, root );
	}
} );

Check that the element exists before rendering component
Check that the element exists before rendering component
