开发者

Is there a way to log the React component hierarchy to the console?

I would like to log the React component hierarchy (not the DOM!) to the console so that I can see what comp开发者_JAVA百科onents are in the tree during Jest tests, but have not come across any pre-built way to do this.

Is there an existing way to accomplish this, either via an official or 3rd party package?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜