--- order: 99 debug: true title: zh-CN: 嵌套 en-US: Nest --- ## zh-CN 默认选中第一项。 ## en-US Default activate first tab. ```tsx import React, { useState } from 'react'; import { Tabs, Select } from 'antd'; const { TabPane } = Tabs; const { Option } = Select; const positionList = ['left', 'right', 'top', 'bottom']; const list = Array.from({ length: 20 }).map((_, index) => index); const App: React.FC = () => { const [parentPos, setParentPos] = useState(undefined); const [childPos, setChildPos] = useState(undefined); const [parentType, setParentType] = useState(undefined); const [childType, setChildType] = useState(undefined); return (
{list.map(key => ( TTTT {key} ))} Content of Tab Pane 2
); }; export default App; ```