Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In fairness, you're comparing a situation where you already know the specialised knowledge to one where you do not. Higher order components are simple in React precisely because you know the framework inside out and you know what a JSX transform does, internally, sight unseen.

That's not particularly intuitive! It just feels that way because you know it well.

> There's always a 'Vue' way to do it, rather than a 'Javascript' way to do it.

I mean, come on. There's a 'React' way to do almost everything too. Want to create an element? No document.createElement for you, you'll be wanting to import ReactDOM, make a class that extends Component (or make a stateless component via a function. Also not intuitive!), then render that component into the DOM.



> No document.createElement for you, you'll be wanting to import ReactDOM, make a class that extends Component (or make a stateless component via a function. Also not intuitive!), then render that component into the DOM.

Yeah but you just described the entire framework. What he's driving at is that React had a very small API surface area, Vue has a much larger one.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: