Bug: can't get the correct fiberNode.child in classComponent

This issue has been tracked since 2022-09-01.

React version: 18.2.0

Steps To Reproduce

Link to code example: https://codesandbox.io/s/priceless-jerry-4ph5q0?file=/src/App.js:0-1160

The current behavior

this._reactInternals.child is null

The expected behavior

gaearon wrote this answer on 2022-09-01

It’s not supported to read internal objects. What are you trying to do?

More Details About Repo
Owner Name facebook
Repo Name react
Full Name facebook/react
Language JavaScript
Created Date 2013-05-24
Updated Date 2022-10-03
Star Count 195560
Watcher Count 6648
Fork Count 40508
Issue Count 1111


Issue Title Created Date Updated Date