From 650e26c50757b55a1b6284d25fb324ed43ddbc60 Mon Sep 17 00:00:00 2001 From: macmoritz Date: Sat, 1 Nov 2025 20:29:12 +0100 Subject: [PATCH] fix: use rx.Var.create to get a str var --- docs/wrapping-react/local-packages.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/wrapping-react/local-packages.md b/docs/wrapping-react/local-packages.md index 746558eb72..a0ae718cb0 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 +```