Social handles CRUD (admin side, nothing user-facing)
This commit is contained in:
@ -9,16 +9,15 @@ import App from './App'
|
||||
*/
|
||||
const redwoodAppElement = document.getElementById('redwood-app')
|
||||
|
||||
if (!redwoodAppElement) {
|
||||
if (!redwoodAppElement)
|
||||
throw new Error(
|
||||
"Could not find an element with ID 'redwood-app'. Please ensure it " +
|
||||
"exists in your 'web/src/index.html' file."
|
||||
)
|
||||
}
|
||||
|
||||
if (redwoodAppElement.children?.length > 0) {
|
||||
if (redwoodAppElement.children?.length > 0)
|
||||
hydrateRoot(redwoodAppElement, <App />)
|
||||
} else {
|
||||
else {
|
||||
const root = createRoot(redwoodAppElement)
|
||||
root.render(<App />)
|
||||
}
|
||||
|
Reference in New Issue
Block a user