TypeScript x React

解決React x TypeScript x TSLint 「Shadowed name: ‘hogehoge’]

解決React x TypeScript x TSLint 「Shadowed name: 'hogehoge']

TypeScript x React
TypeScript x React

「Shadowed name」 indicates that the same variable already exists

Look at the code below

解決React x TSLint 「Shadowed name: 'hogehoge']
解決React x TSLint 「Shadowed name: 'hogehoge']

One is the records from the parent component,
The other is the records used in the arguments in useCallback

To fix this,
Change one of the variable names

shadowed name はすでに同じ変数が存在していることを示している

下のコードを見てください

一つは親コンポーネントから渡ってきたrecords、
もう一方はuseCallbackの中の引数で使われているrecordsです

これを直すために、
どちらかの変数名を変えてください


「武骨日記の」プライバシーポリシーに関して
プライバシーポリシー

株式会社TerraceTechについて
最近起業しました。
株式会社TerraceTech

SNS
しずかなインターネット kenjimorita
インド旅 instagram
適当な日常写真 instagram
シュールさーん instagram
シュールさーん LINEスタンプ
もりたけんじTwitter
ネタ帳Twitter
note

FaceBook -kennji.morita-

わたしが結成しているWebチームではWeb未経験者、フリーランスの方へのお仕事を紹介しています。
また個人レッスンしてほしい生徒も募集中です。
もしご興味ある方はチャットからご連絡ください。

※業務連絡やお久しぶり連絡もチャットからお願いします。