Skip to content

Commit c279bf6

Browse files
committed
wip: clearified problem
1 parent 850fe86 commit c279bf6

File tree

1 file changed

+2
-1
lines changed
  • examples/typescript-example/src

1 file changed

+2
-1
lines changed

examples/typescript-example/src/App.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import "./App.css";
44
import * as MyModel from "./MyModel";
55

66
function App() {
7-
const a = MyModel.use(() => "hi");
7+
const myModel = MyModel.use(); // myModel should be MyModelState
8+
const isOn = MyModel.use(({ isOn }) => isOn); // isOn should be boolean
89

910
return (
1011
<div className="App">

0 commit comments

Comments
 (0)