Skip to content

Commit 9d97a3c

Browse files
authored
fix: use rx.Var.create to get a str var (#1684)
1 parent ad5e14a commit 9d97a3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/wrapping-react/local-packages.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class Hello(rx.Component):
7171
# Define everything else as normal.
7272
tag = "Hello"
7373

74-
name: rx.Var[str] = rx.Var("World")
74+
name: rx.Var[str] = rx.Var.create("World")
7575
on_greet: rx.EventHandler[rx.event.passthrough_event_spec(str)]
7676

7777
# Include any related CSS files with rx.asset to ensure they are copied.
@@ -168,4 +168,4 @@ intended to be imported by the wrapped component must also be listed in the
168168
},
169169
// ...
170170
}
171-
```
171+
```

0 commit comments

Comments
 (0)