Input fields are typical DOM elements and are of course not overlooked. It's rather trivial to implement your own <MyTextArea /> component which keeps track of cursor position, etc. In fact, that's actually what React does. The <textarea /> component you use is actually a thin wrapper on top of the actual textarea (don't forget that the DOM is virtual in React so you get the luxury of these transparent wrappers).
This has serious implications. For one, the browser inconsistencies are taken care of for you, both for DOM elements and for events (which are also virtual). You effectively get cross-browser DOM tags/attributes/events/etc. without ever knowing it.
This has serious implications. For one, the browser inconsistencies are taken care of for you, both for DOM elements and for events (which are also virtual). You effectively get cross-browser DOM tags/attributes/events/etc. without ever knowing it.
https://github.com/facebook/react/tree/master/src/dom/compon...