React: Provide a mechanism for marking the React type so that it can be identified in HTML

Created on 19 Feb 2017  路  2Comments  路  Source: facebook/react

It would be very helpful during analysis and debugging (especially when unfamiliar with code base) to be able to identify components by looking at the HTML. For instance data-react-type="Foo" but it might be nice for formalize this.

Most helpful comment

Have you tried the Chrome React devtools extension?

All 2 comments

Have you tried the Chrome React devtools extension?

Yupp, we recommend using react-devtools for inspecting and debugging React applications.

Was this page helpful?
0 / 5 - 0 ratings