私はこれを見ていますsource code。reduxと反応し、イベントハンドラ名
render() {
const { value, onChange, options } = this.props
return (
<span>
<h1>{value}</h1>
<select onChange={e => onChange(e.target.value)}
value={value}>
{options.map(option =>
<option value={option} key={option}>
{option}
</option>)
}
</select>
</span>
)
}
私の質問は、なぜイベントハンドラがonChange
であるのですか?標準のhtml属性はonchange
だと思います。 ReactJSドキュメントのWebサイトでの使用の https://facebook.github.io/react/docs/events.html
あなたが持っているいくつかの例: https://facebook.github.io/react/docs/forms.htmlと、残念ながら、私は、任意のイベントハンドラの名前について