Social handles CRUD (admin side, nothing user-facing)

This commit is contained in:
Ahmed Al-Taiar
2024-08-19 23:20:32 -04:00
parent 1c46a8e963
commit c7d87e36f2
39 changed files with 1229 additions and 480 deletions

View File

@ -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 />)
}