Recursion
To allow operating on a tree-style data that’s nested by its nature, a recursion helper is included.
x-recurse
It is also possible to apply x-each
recursively using x-recurse
. It will find the nearest x-each
and then apply it using the given state. To allow styling, x-each
injects a level
property to each item based on the depth of recursion.
Editor
- 0 && 'ml-2'">
To allow rendering more complex structures, x-recurse
allows you to define which parent to reuse in case multiple x-each
are used.
Editor
- 0 && 'ml-2'">
Element
Props
Children
- 0 && 'ml-2'">
Element
-