handelChange関数の第一引数は使わずに第二引数だけを使用しています。
第一引数は使わないので_としていますが lodashをimportしていて 第一引数の_とlodashの_が被ってしまい
以下のエラーが出てしまいます。
どう直したらいいでしょうか?
教えていただきたいです。
'_' is already declared in the upper scope no-shadow
import _ from 'lodash'; const handleChange = (_: React.ChangeEvent<{}>, index: number) => { setState({ ...state, passwordCountText: index }); };

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/04/06 08:32