I know it's late, but I was trying to do exactly the same thing and bumped into this.
This will help, I believe. It's used by react-scan, and you can see how it exposes react fibers.