HEX
Server: nginx/1.18.0
System: Linux vps-9dcdb12e 5.15.0-176-generic #186-Ubuntu SMP Fri Mar 13 11:01:42 UTC 2026 x86_64
User: ubuntu (1000)
PHP: 8.1.2-1ubuntu2.24
Disabled: exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source
Upload Files
File: /var/www/goautomatic.pl/wp-content/plugins/suremails/src/index.js
// File: src/index.js

// Import createRoot from @wordpress/element for WordPress compatibility
import { createRoot } from 'react-dom/client';
import App from './App';
import './styles.css'; // Ensure your styles are imported

// Find the root element in the WordPress page where the app will be rendered
const rootElement = document.getElementById( 'suremails-root-app' );

if ( rootElement ) {
	// Create a root and render the App component
	const root = createRoot( rootElement );

	// Render the App within the root
	root.render( <App /> );
}