Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/code-snippets/js/edit.tsx
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
import React from 'react'
2
+
import { createRoot } from 'react-dom/client'
3
+
import { SnippetForm } from './components/SnippetForm'
4
+
5
+
const container = document.getElementById('edit-snippet-form-container')
6
+
7
+
if (container) {
8
+
const root = createRoot(container)
9
+
root.render(<SnippetForm />)
10
+
} else {
11
+
console.error('Could not find snippet edit form container.')
12
+
}
13
+