React changes every 2 years. These fundamentals haven't changed in 10.
The difference between a junior and a staff front end engineer isn't which framework they use. It's how deeply they understand the platform underneath.
Black Friday sale starts Friday, 20 November!
3
243
Most devs skip Fiber. Interviewers donāt.
Fiber is the rewrite of Reactās core diffing and scheduling algorithm. The old reconciler did all the work in one synchronous render. Fiber splits it into small units so rendering can be interrupted.
A fiber is one unit of work, like a virtual stack frame React can pause, resume, reuse or throw away. A traditional call stack runs straight through.
Thatās what buys scheduling: prioritize user interactions, coalesce low priority work, avoid dropped frames.
1
90
Can you write Promise.all from scratch?
Most first attempts pass the happy path. The contract is stricter: concurrent, resolves in input order not finish order, rejects on the first rejection, [] resolves to [], plain values keep their place.
2
2
212
Bug 3: calling .then on every input breaks on plain values. 42 has no .then. Wrap each one with Promise.resolve(item).then, which also handles thenables.
Bug 4: an empty array never settles, because no callbacks run. Check for it first.
1
61
Why does this useMemo run on every render?
All the dependencies are listed correctly. The component builds searchOptions as a plain object in the body, then passes it to useMemo as a dependency. One of them is a new object every render.
1
1
228
Move the object inside the calculation and depend on text instead. text is a string, so Object.is compares its value. Reactās docs call this the better fix.
If other code needs the object too, memoize the object itself with its own useMemo on text.
1
56
5 loading patterns that sound similar and behave differently:
async vs defer
preload vs prefetch
lazy loading vs eager loading
preconnect vs dns-prefetch
fetchpriority high vs default priority
Follow for more.
#javascript #html #webperformance #webdevelopment #frontend
2
213
These 5 JavaScript questions look easy. Until you're asked to code them.
Knowing how a function works is one thing. Implementing it from scratch is another.
Here are 5 worth practicing before your next frontend interview:
#frontend #javascript #frontendinterview #greatfrontend
1
4
271
Coinbase asked a staff front end candidate to build a dropdown. The UI was easy. The API was the test.
Round 1 was tech execution, then system design on a trading UI screenshot, a domain deep dive with diagrams, and a hiring manager round.
2
6
523
One controllable state hook supports both. If the parent passes a value, use it. If not, keep local state. Fire onChange either way.
Open or closed is state too, so give it the same shape: open plus onOpenChange, the way Radix does.
1
94
5 frontend scrolling comparisons worth knowing:
Scroll listener vs IntersectionObserver
scrollIntoView() vs scrollTo()
ResizeObserver vs IntersectionObserver
CSS scroll snap carousel vs JavaScript-controlled carousel
JavaScript scroll animation vs CSS scroll-driven animation
At this point, if all three AI tools go down at the same time, I'm taking the day off. š
Maybe I'll finally touch some grass.
Be honest, how long would you survive without your AI coding tools?
Link in bio to practice real interview questions.
#Frontend #SoftwareEngineer
1
199




























