Access to React's named Fragment element?

Hi, I want to make a fragment but I want to pass it a key,

<Fragment key={k}> ... </Fragment>

I can make a fragment with <>...</> but then I can’t give it any props.

How can this be accomplished in ReScript? I don’t think the React bindings support it.

Sure you can:

<React.Fragment key={k}> ... </React.Fragment>

:slight_smile:

2 Likes