eachwill make your iterations in template a breeze. It takes care of unique keys for each element, as well as simplify the syntax.
collection- an array of something
onItem(item, index)- callback which will be used for each item in the collection
ReactNodethat will be returned in case the collection is empty.
ifstatement which does not require to return
nullas false case.
ifTrue- value when true
ifFalse- value when false
yieldChildrenallows you to return component's
childrenor in case the
childrenis a function, it will allow you to call it with custom arguments.
ReactNode | Function
any- your custom arguments that will be used on
childrenis a function)