I would like to wrap each child in an element.
For example I have a list element and I wand ever child element to be wrapped in a li element. What's the proper way of doing this? I can do it like this with the children helper function, but is this a good way of doing it? Should I try to avoid this situation?
export const List: ParentComponent = (props) => {
const c = children(() => props.children).toArray();
return <ul>
<For each={c}>
{child => <li>{child}</li>}
</For>
</ul>
}