Initial commit: WordPress wp-content (themes, plugins, languages)
- Theme: momentry (custom theme with REST API routes) - Plugins: code-snippets (contains all API proxies) - Languages: zh_TW translations - Excludes: cache, backups, uploads, logs
This commit is contained in:
12
plugins/code-snippets/js/edit.tsx
Normal file
12
plugins/code-snippets/js/edit.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
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.')
|
||||
}
|
||||
Reference in New Issue
Block a user