I am trying to map values from 2 different arrays, one which contains links and the other with tab names. I have an anchor tag which consists of href and text string. Is there a way I can map/loop the values from 2 arrays to supply value. App is built in React.
arrays
const links = ['#all', '#aew', '#roh', '#impact']
const tabnames = ['All', 'AEW', 'ROH', 'Impact']
const classnames = ['One', 'Two', 'Three', 'Four']
code
<a
href='#link'
>
tabname
</a>
What happens if I try to map 3 arrays on my a, one more for classnames?
code
<a
href='#link'
className='classname'
>
tabname
</a>