mirror of
https://github.com/Athou/commafeed.git
synced 2026-09-22 03:54:11 +00:00
remove warning
This commit is contained in:
@@ -15,9 +15,10 @@ dayjs.extend(relativeTime)
|
||||
dayjs.extend(duration)
|
||||
|
||||
const root = document.getElementById("root")
|
||||
root &&
|
||||
ReactDOM.createRoot(root).render(
|
||||
<Provider store={store}>
|
||||
<App />
|
||||
</Provider>
|
||||
)
|
||||
if (!root) throw new Error("root element not found")
|
||||
|
||||
ReactDOM.createRoot(root).render(
|
||||
<Provider store={store}>
|
||||
<App />
|
||||
</Provider>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user