[React IS] Can't pass props to hitComponent?


I was playing around with the Hits component and specifically it’s ‘hitComponent’ property.
The problem is the following : I need to pass custom properties to my hitComponent, I firstly thought doing things like

<Hits hitComponent={hit => <CustomHit hit={hit} custom={custom} />} />

but, even if it does work for like 2 seconds, it make the entire search laggy and non-usable.
Do you guys have any idea what I should do?

Thanks in advance !

have you got your answer