Преглед на файлове

ok we can unbreak foreach just for you

Khaleel Al-Adhami преди 4 месеца
родител
ревизия
8173e10698
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  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)