Google Groups không còn hỗ trợ đăng ký sử dụng hoặc đăng nội dung mới trên Usenet. Bạn vẫn có thể xem nội dung cũ.

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

5 lượt xem
Chuyển tới thư đầu tiên chưa đọc

Michael (work)

chưa đọc,
04:46:21 24 thg 10, 201724/10/17
đến 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 tin nhắn mới