Google 網路論壇不再支援新的 Usenet 貼文或訂閱項目,但過往內容仍可供查看。

[devtools-rfcs] When moving to ES6 classes should we drop displayName?

瀏覽次數:5 次
跳到第一則未讀訊息

Michael (work)

未讀,
2017年10月24日 凌晨4:46:212017/10/24
收件者:dev-developer-tools
A new proposal has been posted on https://github.com/devtools-html/rfcs

subject: Preferred method for adding static properties to components
link: https://github.com/devtools-html/rfcs/issues/25

> @rickychien has requested that we remove displayName because
according toa React document [1], you don’t need to set it explicitly.
>
> Of course, it was never needed for Components created using
createClass() either but whilst we are changing lots of components at
the same time let's get this right.
>
> Should displayName live or die? You decide!
>
> You can use the thumbs up or thumbs down icons to vote quickly.
>
> [1] https://reactjs.org/docs/react-component.html#displayname

Comment on the GitHub issue if you want to join the conversation!
_______________________________________________
dev-developer-tools mailing list
dev-devel...@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-developer-tools
0 則新訊息