HEX
Server: nginx/1.24.0
System: Linux 0c1023d6c65e 6.8.0-137-generic #137-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 17 20:28:23 UTC 2026 x86_64
User: root (0)
PHP: 8.3.33
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/code-snippets/js/edit.tsx
import React from 'react'
import { createRoot } from 'react-dom/client'
import { SnippetForm } from './components/SnippetForm'

const container = document.getElementById('edit-snippet-form-container')

if (container) {
	const root = createRoot(container)
	root.render(<SnippetForm />)
} else {
	console.error('Could not find snippet edit form container.')
}