交差型よりも interface + extends の方が少し速い。interface は作成された時にプロパティをチェックするが、type は使うたびにチェック。React.HTMLAttributes のような巨大な型を & で拡張し多用すると遅くなる

jay-esjay-es のブックマーク 2024/03/21 18:32

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

This Pattern Will Wreck Your React App's TS Performance

    Matt PocockMatt is a well-regarded TypeScript expert known for his ability to demystify complex TypeScript concepts. A couple of years ago, Sentry were having big problems with their React app. The...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう