florian
Pass every child in props.children a context of their index
I want to create a table where every cell knows its column number without passing it via props. I tried multiple things but they all either didn't work at all or returned undefined when getting the index from the context. Here is how I would like it to work:
Is this even possible and if so how?
24 replies