From 69b3ca9e0299b1dd32a2a92144298bd9812e0620 Mon Sep 17 00:00:00 2001 From: chicago4kbike Date: Tue, 10 Mar 2026 15:15:56 -0500 Subject: [PATCH] Update conditional_rendering.md list[str] is preferred for cleaner code for modern python (3.9+) instead of importing List and use List[str] --- docs/components/conditional_rendering.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/components/conditional_rendering.md b/docs/components/conditional_rendering.md index 5df4111a4..afbce47e5 100644 --- a/docs/components/conditional_rendering.md +++ b/docs/components/conditional_rendering.md @@ -79,14 +79,14 @@ You can use [var operations]({docs.vars.var_operations.path}) with the `cond` co The [`rx.match`]({library.dynamic_rendering.match.path}) component in Reflex provides a powerful alternative to`rx.cond` for handling multiple conditional statements and structural pattern matching. This component allows you to handle multiple conditions and their associated components in a cleaner and more readable way compared to nested `rx.cond` structures. ```python demo exec -from typing import List + import reflex as rx class MatchState(rx.State): cat_breed: str = "" - animal_options: List[str] = [ + animal_options: list[str] = [ "persian", "siamese", "maine coon",