TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Reducing Bloated React Code

2 pointsby cruxcodeabout 2 years ago
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.

no comments

no comments