Add Remote type constructor. Setup basic State/Msg/effects/Reducer. Format
This commit is contained in:
parent
ae6451e052
commit
473897fdfc
5 changed files with 238 additions and 67 deletions
14
src/main.tsx
14
src/main.tsx
|
|
@ -1,16 +1,16 @@
|
|||
import { StrictMode } from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import App from './App';
|
||||
import './index.css';
|
||||
import { StrictMode } from "react"
|
||||
import { createRoot } from "react-dom/client"
|
||||
import App from "./App"
|
||||
import "./index.css"
|
||||
|
||||
const rootElement = document.getElementById('root');
|
||||
const rootElement = document.getElementById("root")
|
||||
|
||||
if (rootElement === null) {
|
||||
throw new Error('Root element #root was not found.');
|
||||
throw new Error("Root element #root was not found.")
|
||||
}
|
||||
|
||||
createRoot(rootElement).render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
</StrictMode>,
|
||||
);
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue