是否有某个特定网站包含所有JSX
组件的属性的完整列表?
例如:<button>
有onClick
等等。
答案 0 :(得分:1)
Also be sure you actually understand difference between JS, onclick
DOM handler, and React synthetic event onClick
:
onclick
handler. That API is given to JS by browsers but there are no mention about that handler in ES specification.答案 1 :(得分:-1)
如果我没记错的话,onClick是JavaScript固有的事件处理程序。至于“属性列表”,我将阅读React Docs here。通常,您为JSX组件制作自己的道具。