I am a beginner in WordPress development looking to build a block with tab navigation using
<LinkControl />. I am still learning, so any guidance/materials/code examples will be appreciated.
My question is, if I have multiple
<LinkControl />, how would I check the current index of that
<LinkControl /> in order to set the attributes?
Here is my code in
and here is the code for my edit function:
I am not sure how to reference that particular item in my array in order change edit the link – could someone help me please?