All writing

· 4 min read

What I Learned During My Frontend Internship at Birgunj Bazar

  • Career
  • React
  • Frontend

Moving from personal sandbox projects to a live e-commerce catalog at Birgunj Bazar Pvt. Ltd. was an eye-opening transition. Working on real user-facing code changed how I think about frontend architecture.

1. Real Users Experience Network Latency

On local development, localhost:3000 responds in 15ms. In real-world conditions with 3G/4G mobile networks across Nepal, catalog API endpoints can take 800ms to 2 seconds to return product data.

  • Skeleton Loaders are Essential: Blank white spaces make users think the app crashed. Implementing lightweight pulse skeletons prevents Cumulative Layout Shift (CLS) and keeps perceived performance high.
  • Optimistic UI Updates: For cart increments and wishlist toggles, updating the UI immediately while the network request resolves in the background makes the app feel native and responsive.

2. Component Reusability Requires Discipline

Early in the internship, it was tempting to copy-paste product cards and tweak them for different seasonal sections. By week four, fixing a single discount badge bug required editing five different files.

  • We refactored product cards into polymorphic primitives accepting clean variant props (variant="grid" | "compact").
  • Centralizing data transformations into pure helper functions prevented catalog display inconsistencies.

3. Empathy for the User

Building for production taught me that accessibility, clear error messages, and mobile-friendly tap targets matter just as much as clean code. Real software isn't defined by how clever the syntax looks—it's defined by how gracefully it handles edge cases for the person on the other side of the screen.