GreatFrontEnd (@greatfrontend) header
GreatFrontEnd (@greatfrontend) profile picture

For front end engineers to learn & connect. šŸŒ¬ļøBreeze thru your interviews w/ GreatFrontEnd Interviews šŸš€Build project challenges w/ GreatFrontEnd Projects

Joined September 2022
Photo by GreatFrontEnd (@greatfrontend)Photo by GreatFrontEnd (@greatfrontend)Photo by GreatFrontEnd (@greatfrontend)Photo by GreatFrontEnd (@greatfrontend)Photo by GreatFrontEnd (@greatfrontend)Photo by GreatFrontEnd (@greatfrontend)Photo by GreatFrontEnd (@greatfrontend)Photo by GreatFrontEnd (@greatfrontend)Photo by GreatFrontEnd (@greatfrontend)Photo by GreatFrontEnd (@greatfrontend)
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.
1
1
2
309
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
Inside a fiber: type, key, pendingProps and memoizedProps, a priority field, and child, sibling and return pointers that form the fiber tree. Comparing the two props objects is how React decides work can be skipped. Be ready to explain all of that in two minutes.
67
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
Bug 5: await in a loop can’t fail fast. A rejection at 30ms isn’t seen until the loop reaches it at 300ms, and until then it has no handler, so Node can report an unhandled rejection. The same skeleton powers allSettled, any and a concurrency limiter.
88
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
Your linter already flags this: react-hooks/exhaustive-deps warns the searchOptions object makes the dependencies change on every render. Same comparison applies to useEffect. And with React Compiler on, most of this is memoized for you, with useMemo as the escape hatch.
44
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
Name what production needs that you can’t finish in the round, like flipping the menu when it hits the edge of the screen. At staff level the deliverable is an API other teams can use: controlled and uncontrolled for both selection and menu, plus swappable parts.
60
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
2
1
3
253
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