Skip to content

Commit b1e3355

Browse files
committed
made the example a bit better
1 parent 88db6f7 commit b1e3355

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ The component has to be registered as a **prototype** using `prototype`
9191
builder.prototype(
9292
"comp",
9393
"text 'this is a template'",
94-
|| MyComponent,
95-
|| ()
94+
|| MyComponent::new(),
95+
|| MyState::new()
9696
);
9797
```
9898

0 commit comments

Comments
 (0)