Skip to content

Commit

Permalink
wip: clearified problem
Browse files Browse the repository at this point in the history
  • Loading branch information
shanebdavis committed Oct 3, 2022
1 parent 850fe86 commit c279bf6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/typescript-example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import "./App.css";
import * as MyModel from "./MyModel";

function App() {
const a = MyModel.use(() => "hi");
const myModel = MyModel.use(); // myModel should be MyModelState
const isOn = MyModel.use(({ isOn }) => isOn); // isOn should be boolean

return (
<div className="App">
Expand Down

0 comments on commit c279bf6

Please sign in to comment.