This:
import React from "react";
import { render } from "react-dom";
let $container;
render(
<b ref={e => ($container = e)}>
{"one"}two{"six"}
</b>,
document.getElementById("root")
);
console.log($container);
will get me the <b> element:
<b>
<!-- react-text: 2 -->
"one"
<!-- /react-text -->
<!-- react-text: 3 -->
"two"
<!-- /react-text -->
<!-- react-text: 4 -->
"six"
<!-- /react-text -->
</b>
But, what if I want a reference to one of the TextNodes?
Is there a public api for this? Maybe a special type for TextNodes so I can pass props to createElement?