Hacker News new | ask | show | jobs
by funkiee 4143 days ago
The next sentence in your quote has some importance too, "Remember that the key only has to be unique among its siblings, not globally unique."

I agree there could be a little more clarity in that block of text, but I think the trade-offs section describes it well. Additionally, if there are any nodes in the tree that have a chance of being the same item between renders, you're going to benefit immensely from implementing a `shouldComponentUpdate` in your `SearchResultsItem.jsx` file.

React certainly doesn't win on every performance level, and if you try to compete on performance you're eventually going to lose. A careful developer could implement this list with no framework at all and have performance that beats both.

In the end, it's more about the mental model that best fits you and your team. I find the composite UI of React where I am building every component of other components in Javascript without a templating language to get in my way to be best suited to me.

If Marko works well for your team and you find it easy to get new developers on board and contributing code then that's awesome, keep up the good work.