|
|
|
|
|
by idoubtit
1247 days ago
|
|
> That's precisely my issue with React though - JSX is a DSL React does not require JSX, so it's a bit strange to raise the same issue with JSX as with the DSLs of Vue, etc. If one wants to avoid JSX, it's always possible to write pure JS: return (<h1 className="sc">Hello {title}</h1>);
return React.createElement('h1', {className: "sc"}, `Hello ${title}`);
|
|
But JSX is a standard way to work with React. And Vue templates are a standard way to work with Vue.