2020年12月16日解決済み

countUp関数の引数について教えて下さい

ユーザー

countUpの関数の引数でcounterのデータが入ってくるということですが、呼び出し元では引数を指定していないのに、なぜcounterのデータが入ってくるのでしょうか?

countUp(counter) {

}

render() {
return (
<div className="container">
<CounterList
counters={this.state.counters}    
countUp={this.countUp}← 呼び出し元
/>
<div>TOTAL INVENTORY: 3</div>
</div>
);
}

スタッフ

この回答を見るにはプレミアムプランへの登録が必要です

プレミアムプランとは?