TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Optimizing React Apps in Practice

70 点作者 alexwolfe超过 7 年前

3 条评论

regecks超过 7 年前
A few choice websites have definitely colored my view of React (e.g. Airbnb, multi-second delay clicking onto a form text field on current generation Android and iPhone? I hope they see some of the techniques in this article).<p>It&#x27;s hard to know if this is due to the way the article is written but it seems like you&#x27;re sacrificing both developer ergonomics and runtime performance in this situation. I am curious to hear about similar scenarios in competing frameworks like Vue.
评论 #15041790 未加载
评论 #15041821 未加载
评论 #15042780 未加载
azundo超过 7 年前
I can&#x27;t recommend reselect enough if you&#x27;re using redux. Not only does it save time when computing derived data from your reducer state it also isolates your components from the structure of your reducer state. Change the location of some data in your reducer? No problem, just adjust your selector in one place and none of your components need changing.
tarr11超过 7 年前
React really should be able to detect object literals in style components and optimize those away into a const under the hood. Hopefully this is fixed in a future version.
评论 #15043254 未加载
评论 #15042260 未加载