I have a question, that might be subtle (or not).
Why one would pass a function to a react component to obtain the data instead of data itself?A short example would be
<CompTest data={data} ...>
vs
const getData() => data;<CompTest data={()=> getData()} ...>
I am wondering if there is a trick with the react data pulling it with laziness ... not sure..