Sign in

Cathal Mac Donnacha

@cathalmacdonnacha.com
81 followers 168 following 125 posts

Principal Frontend Engineer @wpengine. Follow along for frontend tips on React ⚛️ Testing 🧪 UI/UX 🖥. My blog ✍️ cathalmacdonnacha.com

PostsRepliesMedia
Cathal Mac Donnacha @cathalmacdonnacha.com · 17/07/2025
I guess ChatGPT is training itself on my blog now 😂 #blogging #chatgpt #software
Screenshot of referrers from a blog (http://cathalmacdonnacha.com/)
010
Cathal Mac Donnacha @cathalmacdonnacha.com · 18/06/2025
TIL: Chrome Dev Tools has an accessibility view ♿️ #frontend #chrome #webdev
accessibility view in chrome dev tools elements tab
120
Cathal Mac Donnacha @cathalmacdonnacha.com · 28/12/2024
❌ 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...
Code example showing redundant state along with a better alternative where you simply derive state.
020
Cathal Mac Donnacha @cathalmacdonnacha.com · 03/12/2024
How am I just now discovering "Design Mode" in Chrome DevTools? ⭐️ 💻 #ChromDevTools #frontend #webdev
000
Cathal Mac Donnacha @cathalmacdonnacha.com · 27/11/2024
Just updated all of my articles 🦋 😀
Reference to Twitter being replaced with BlueSky
020
Cathal Mac Donnacha @cathalmacdonnacha.com · 15/11/2024
🚀 Run this command if you ever want to delete all local git branches except for "main". #git #development #software #programming
020
Cathal Mac Donnacha @cathalmacdonnacha.com · 14/11/2024
🚀 Debugging tip I used to always give a label to the value I printed out in a console.log. However, a faster and cleaner way is to just print it as an object. (yes I still like to use console.log sometimes over the debugger) #javascript #frontend #webdevelopment
Code example showing use of console logging
381