正文
Try it!
// index.tsx
import "reflect-metadata";
import React from "react";
import { render } from "react-dom";
import { useEffectModule } from "@sigi/react";
import { initDevtool } from "@sigi/devtool";
import { AppModule } from "./app.module";
function App() {
const [state, dispatcher] = useEffectModule(AppModule);
const loading = state.loading ? loading<
/div> : null;
const list = (state.list || []).map(value => {value}li>);
return (
Hello CodeSandbox</h1>
button>