4 ms·
Author here, glad people seem to have found this one useful and would be happy to answer any questions!
by jamesknelson 9y ago
Author here, glad people seem to have found this one useful and would be happy to answer any questions!
- mattashii 9y agoOne of my recent discoveries in React was that it doesnt transpile/transcribe HTML (jsx), but the HTMLDOMElement API. Many guides which say something about how prop resolving works say something abiut how it is similar to writing HTML, but with a few extra gotchas ("HTML attributes can’t be functions?! Since React Elements are plain old JavaScript objects, you can add anything to an element ..."), while it is actually a unifying wrapper around the HTMLDOM browser APIs (when using ReactDOM, of course). Saying that ReactDOM is extended from HTML leads to confused developers expecting react to handle props of certain types in a consistent way over props, which it doesn't [0]. So, if possible, could you update this guide to help prevent these misconceptions? Other than that, this looks like a great guide for starting react developers! [0] https://github.com/facebook/react/issues/9220 https://github.com/facebook/react/issues/9220