3 ms·
'JSX' is also what made me avoid React at first. But once I started using it, it made perfect sense. The 'JSX' is just compiled to Javascript anyway, it's just
by jesstaa 13y ago
'JSX' is also what made me avoid React at first. But once I started using it, it made perfect sense.
The 'JSX' is just compiled to Javascript anyway, it's just more convenient for deep nesting of html elements within a component.
In more recent talks the React devs have avoided using JSX in examples and instead use the compiled form as JSX goes far enough from what people expect that it turns people away before they've given it a chance.
The most important idea to take from React is that UI components are much simpler when they are state machines.