Children can be a function, node, or array of nodes (or something else); and you need to know the API of the component you're using before you can really know anything about any prop.
Anyone who has ever used the browser DOM and starts using react will intuitively understand this from day one.
I wrote vanilla JS for years, then Backbone, then Angular, and now React. I am the counterexample to your second sentence. My "intuitive understanding" is that props are actually keys in a plain-ol' JS function argument, and I'm sure that you're handicapping yourself if you're going out of your way to map React concepts to DOM concepts. This is why people find hooks so confusing and weird, because they're trying so hard to map it to some other concept. See the many comments about JSX in this thread - the more you try force React ideas into your preconceptions about web dev, the worse time you'll have.
Still have no real idea how it's implemented, but it's pretty simple once you stop trying to overanalyze it.
For more details, see:
- Shawn Wang's talk "Getting Closure on Hooks": https://www.swyx.io/getting-closure-on-hooks/
- React Hooks Demystified: https://dev.to/kayis/react-hooks-demystified-2af6
- React Hooks - Not Magic, Just Arrays: https://medium.com/@ryardley/react-hooks-not-magic-just-arra...
- additional articles: https://github.com/markerikson/react-redux-links/blob/master...
That’s incorrect, if anything it corresponds to .childNodes. The textContent property is a getter that extracts text nodes only from all the nested children of an element.