# 03 · generic-component **演示**:泛型组件 `List` 从 `items` 推断 `render` 的参数类型;JSX 中无需手写 ``。 **运行**:在 `tutorials/typescript` 下执行 `npm run build`,再执行 `npm run serve`,打开 `http://localhost:8080/examples/29-jsx-react-types/03-generic-component/`;开 Console。 **预期控制台输出**: ```text ``` **类型检查**:`node node_modules/typescript/bin/tsc -p examples/29-jsx-react-types/03-generic-component/tsconfig.types.json` **注意**:JSX 里泛型推断依赖 props;如果推断不出,可显式写 ` ... />`(TSX 中需注意与比较运算符歧义)。