diff --git a/docs/wrapping-react/local-packages.md b/docs/wrapping-react/local-packages.md index 746558eb7..a0ae718cb 100644 --- a/docs/wrapping-react/local-packages.md +++ b/docs/wrapping-react/local-packages.md @@ -71,7 +71,7 @@ class Hello(rx.Component): # Define everything else as normal. tag = "Hello" - name: rx.Var[str] = rx.Var("World") + name: rx.Var[str] = rx.Var.create("World") on_greet: rx.EventHandler[rx.event.passthrough_event_spec(str)] # 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 }, // ... } -``` \ No newline at end of file +```