I cannot seem to understand how to translate the anonymous function that takes the hit prop and returns the hitComponent, in the example. Probably because I don’t understand what’s happening with the const Hit = ... Any clues?
The const Hit is just a function that takes hitProps and returns a React.element, so you only need to adapt the signature of the hitComponent parameter: