소스 검색

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)