4 ms·
You know you can just check before making these claims. It helps with credibility. > In fact, for years, react didn't even tell in the doc you could use it wit
by ctvo 2y ago
You know you can just check before making these claims. It helps with credibility.
> In fact, for years, react didn't even tell in the doc you could use it without a transpiler so people had to learn a whole build chain before even getting to the hello world.
React's original documentation site from June of 2013 (when React was first introduced):
https://web.archive.org/web/20130607085014/http://facebook.github.io/react/docs/syntax.html https://web.archive.org/web/20130607085014/http://facebook.g...
> JSX is a JavaScript XML syntax transform recommended (but not required) for use with React.
It goes on to explain exactly what JSX is and how it converts to JS functions. Feel free to click around that original documentation site.
Here's the README.md from the commit at the same time:
https://github.com/facebook/react/tree/a41aa76ef36471ba07b29278ae13218dc5c7323f https://github.com/facebook/react/tree/a41aa76ef36471ba07b29...
> You'll notice that we used an XML-like syntax; we call it JSX. JSX is not required to use React, but it makes code more readable, and writing it feels like writing HTML. A simple transform is included with React that allows converting JSX into native JavaScript for browsers to digest.
At this point I would kindly ask you to go away.
- BiteCode_dev 2y agoI stand corrected, I'm the one with a distorted memory of the doc.