import { HOCBuilder, KeyboardShortcutManagerProvider } from "~/utilities";
import { type JSX } from "solid-js";
import { render } from "solid-js/web";
import App from "./App";
import { Router } from "./router";
function Foo(props: { bar: string }): JSX.Element {
return <>{props.bar}</>;
}
const Main = new HOCBuilder()
.with(Router, { root: App })
// This is giving an error! :'(
.with(Foo, { bar: "asdf" })
.with(KeyboardShortcutManagerProvider)
.build();
render(() => <Main />, document.getElementById("root")!);
import { HOCBuilder, KeyboardShortcutManagerProvider } from "~/utilities";
import { type JSX } from "solid-js";
import { render } from "solid-js/web";
import App from "./App";
import { Router } from "./router";
function Foo(props: { bar: string }): JSX.Element {
return <>{props.bar}</>;
}
const Main = new HOCBuilder()
.with(Router, { root: App })
// This is giving an error! :'(
.with(Foo, { bar: "asdf" })
.with(KeyboardShortcutManagerProvider)
.build();
render(() => <Main />, document.getElementById("root")!);