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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Reducing Bloated React Code

2 点作者 cruxcode大约 2 年前
What do you find in a bulky web app code? 1. Less component reuse 2. Un-generalized way to write React components. 3. Data manipulation logic that could be handled in backend.<p>Developers have a tendency to write React code first and then put them in a React component later.<p>Developers don&#x27;t have a fixed pattern of writing components. They decide prop signature randomly. This leads to other problems, such as, it&#x27;s hard to generalize other pieces of code such as store update&#x2F;read etc.<p>Writing data manipulation logic in the frontend has become very common problem. The client side frameworks have imparted this bad habbit in new gen developers.<p>Please share the best practices&#x2F;rules you follow to keep the bundle size &amp; code smaller.

暂无评论

暂无评论