タグ

ブックマーク / legacy.reactjs.org (1)

  • Handling Events – React

    These docs are old and won’t be updated. Go to react.dev for the new React docs. These new documentation pages teach modern React and include live examples: Responding to Events Handling events with React elements is very similar to handling events on DOM elements. There are some syntax differences: React events are named using camelCase, rather than lowercase. With JSX you pass a function as the

    Handling Events – React
    niwatako
    niwatako 2017/04/21
    呼び出す時に {() => xxx()} する方式は避けたほうが良いらしい “We generally recommend binding in the constructor or using the property initializer syntax,”
  • 1