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?
精彩评论