Using TypeScript in React. ... const { content } = props; return ( // ... ) } 使用TypeScript 後,即不需要如同在JS 中替每個元件定義PropTypes。
確定! 回上一頁