| ▲ | buzzerbetrayed 5 hours ago | ||||||||||||||||
> 100% pure JavaScript directly How did the React community convince so many people of this falsehood? Do that many people just not know what javascript is? It baffles me that one could look at JSX and be like, “that right there is vanilla javascript”. | |||||||||||||||||
| ▲ | lwansbrough 5 hours ago | parent | next [-] | ||||||||||||||||
Yeah man it’s pure JS trust me just add this little transpiler and you’re good to go. What do you mean you don’t have a bundler? | |||||||||||||||||
| ▲ | kristiandupont 3 hours ago | parent | prev | next [-] | ||||||||||||||||
What people mean is obviously that you use JS primitives for looping, branching, conditionals, etc. over some DSL. Everybody knows that the tags are added syntax, there is no conspiracy here. | |||||||||||||||||
| |||||||||||||||||
| ▲ | hajile 5 hours ago | parent | prev | next [-] | ||||||||||||||||
JSX is basically just a subset of E4X. | |||||||||||||||||
| ▲ | nsonha an hour ago | parent | prev [-] | ||||||||||||||||
vanila javascript would not be far off, just replace the tags with function calls. In early versions of react, there were people who wrote code like that. For some reason web devs since collectively agreed that the xml syntax is essential to web technologies | |||||||||||||||||