Browse Source

ok we can unbreak foreach just for you

Khaleel Al-Adhami 4 tháng trước cách đây
mục cha
commit
8173e10698
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      reflex/components/core/foreach.py

+ 6 - 0
reflex/components/core/foreach.py

@@ -45,3 +45,9 @@ def foreach(
         )
 
     return iterable.foreach(render_fn)
+
+
+class Foreach:
+    """Create a list of components from an iterable."""
+
+    create = staticmethod(foreach)