If you're still using Jest, you may find this article useful to help speed up your tests. cathalmacdonnacha.com/fixing-slow-... #frontend #jest #testing
Cathal Mac Donnacha
Cathal Mac Donnacha
@cathalmacdonnacha.com
Principal Frontend Engineer @wpengine. Follow along for frontend tips on React โ๏ธ Testing ๐งช UI/UX ๐ฅ. My blog โ๏ธ http://cathalmacdonnacha.com
81 followers168 following125 posts
I tend to use pagination when users need shareable links or to give a sense of how much data is left (e.g. โpage 3 of 10 in blue t-shirtsโ). Use virtual scroll for endless browsing (e.g. social feeds). ๐ Pagination = easy to share & measure. ๐ Virtual scroll = easy to scroll. #frontend #ux #webdev
This is a real level headed take on AI and the perceived notion that it's going to completely take over software engineering roles: youtu.be/mbEzhI3cmmo?...
Cathal Mac Donnacha reposted
React Compiler RC is now available! We've added support for swc and are working towards a stable release react.dev/blog/2025/04...
Even though it's been out for years now, I feel like using React Query as an async state manager is a highly underrated and underused feature. tkdodo.eu/blog/react-queโฆ #reactjs #frontend
Starting a "brag document" was one of the best things I did for my career. It saves you a ton of mental effort and scrambling when those performance reviews come around! www.youtube.com/watch?v=gbkv... #software #career
Every #reactjs developer should read this: react.dev/learn/you-mi...
"The Staff Engineer's Path" by @whereistanya.bsky.social is a great book for anyone new to technical leadership.
โ Avoid storing derived state like totals, filters, or counts in useState. โ Calculate derived values directly in render from the existing state or props. Simple, clean, and avoids bugs caused by syncing issues! Learn more here: react.dev/learn/you-mi...
Cathal Mac Donnacha reposted
Claude 3.5 Sonnet, directly in VS Code. Available to everyone today with GitHub Copilot Free. Learn more: aka.ms/copilot-free
Cathal Mac Donnacha reposted
Cathal Mac Donnacha reposted
Next.js and Remix's focus on SSR has added cruft and complexity to the core React use case of building interactive apps. @tanstack.com is the antidote to this: an opinionated framework that actually helps you get stuff done rather than forcing you to optimise for someone else's e-commerce use case.
For a long time I slightly resented Gatsby for the added pressure it gave me to stop building React Static, but I miss it now. The React ecosystem is overflowing with homogenous thinking lately and Gatsbyโs decline didnโt help that. ๐ซก Gatsby and @kyle.bricolage.io
Using TanStack Query's 'Optimistic Updates' pattern is one of the best ways to improve the UX. ๐ Just make sure it's the right fit: โ Great for scenarios with high success likelihood (e.g. likes, toggles). โ Avoid for critical, high-risk actions or long flows (e.g. payments, irreversible changes).
Ever wondered when you should adopt a new CSS feature? Read this ๐
๐ So letโs say you want to use a modern CSS feature like container queries. According to caniuse, the feature is at 93% support. Is that good enough? How do we evaluate this number? I dig into this question in my brand-new just-published blog post, โA Framework for Evaluating Browser Supportโ. ๐