Fork me on GitHub
#helix
<
2020-05-13
>
Derek21:05:52

Is there a function in helix.children that would allow me to render children with an additional property?

Derek21:05:33

passing children wrapped in a function works

lilactown21:05:07

it sounds like you want cloneElement

Derek21:05:27

yeah, i went with children as a function for now

Derek21:05:46

I was curious about helix.children/map

lilactown21:05:10

helix.children/map won’t give you access to the children’s props necessarily

lilactown21:05:22

children as a function is probably the best thing to do