You can write something like this
{tabData && tabData.length > 0 && tabData.map((data) => {
return (
<TabPanel value={value} index={data.key}>
<ul index={data.key}>
{data && data.theory && data.theory.length > 0 && data.theory.map((tit) => {
return (<li key={tit.key}>{tit.title}</li>);
})}
</ul>
</TabPanel>
);
})}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…