3 ms·
In my mind this is strictly inferior to JSX, which would be: export default ({title}) => ( <div> <h2>{title}</h2> </div> ) The only
by ng12 10y ago
In my mind this is strictly inferior to JSX, which would be:
export default ({title}) => (
<div>
<h2>{title}</h2>
</div>
)
The only benefit to the template is if you use fancy features (#each, binding, etc) which is worse because now you have two places where the logic happens.