I'm creating elements in React through arrays.
childArray.push(
<span className={value}>
</span>
)
...
parentArray.push(
<Element>
{({ value }) => (
{childArray}
)}
</Element>
)
I want the child array to be able to access the parent prop value.
I'm using react-final-form with the FormSpy, which is when I ran into this issue. I can't change much about the situation I'm in.