- {list.map((item, index) => {
- return (
-
- {index + 1}
-
+
+ {list.map((item, index) => (
+ // eslint-disable-next-line react/no-array-index-key
+
+
{item.title}
{item.list.map((childItem) => {
return (
@@ -184,9 +110,9 @@ const CourseCom: React.FC = () => {
)
})}
-
- )
- })}
+
+ ))}
+