griffadev's profile picture. UK Frontend Developer at @ImmersiveLabs
http://griffa.dev
Web Platform/JavaScript enthusiast.🖱⌨💻
http://github.com/Georgegriff

George Griffiths

@griffadev

UK Frontend Developer at @ImmersiveLabs http://griffa.dev Web Platform/JavaScript enthusiast.🖱⌨💻 http://github.com/Georgegriff

I used to like React Testing Library. Then, I worked on an app trying to upgrade from React 17 to 18, which taught me the importance of libraries offering incremental API upgrade changes in major versions... and documentation... which was severely lacking


George Griffiths รีโพสต์แล้ว

3 Unintuitive #CSS Layout “Solutions” ``` min-width: 0? flex-shrink: 0? repeat(auto-fill, minmax(min(10rem, 100%), 1fr)) ``` wat? nerdy.dev/3-unintuitive-…

argyleink's tweet image. 3 Unintuitive #CSS Layout “Solutions”

```
min-width: 0?
flex-shrink: 0?
repeat(auto-fill, minmax(min(10rem, 100%), 1fr))
```

wat?
nerdy.dev/3-unintuitive-…

If you have a css reset with this code html { box-sizing: border-box; } *,*:before,*:after { box-sizing: inherit; } It does not work with elements like `<details>`, I guess because of internal shadow dom. But the `<summary>` element will not get the border-box set.


To the react engineers in the 2010s/2020s who fooled everyone into thinking running tests in the browser was too slow, I kinda hate you. JSDOM is so cursed. I've spent collectively more time debugging BS jsdom issues than I ever would have "lost" from a browser


I didn't think I'd still be doing Advent of Code on day 14. Part two was a very festive puzzle today! I've learnt lots of Go this month and re-learned lots of maths I'd forgotten in previous days


George Griffiths รีโพสต์แล้ว

📢 Today is my birthday so I want to do a giveaway! 3 random lucky persons who follow me and retweet this post will get a FREE license for the Mocking Techniques bundle! 🎁 epicweb.dev/testing 🎁 I will announce the winners next Thursday. Good luck!


I wanted to like react-aria-components but they've almost implemented their own platform on top of the web, breaking events, broken and buggy magic with clicks based on pixel positions, and much more. If building a design system rule out this solution, especially if it's buttons


George Griffiths รีโพสต์แล้ว

“this industry lacks a lot of people who think about what they’re doing” — @threepointone joined me to talk about leverage, ambition, and much more on Web Lunch (full episode link in thread)


Too real as ex IBMer

ทวีตนี้ไม่สามารถใช้งานได้อีกต่อไป

George Griffiths รีโพสต์แล้ว

→ Shortcut Masters by @ORidsdale helps you master VS Code shortcuts with interactive challenges, boosting your development speed. Learn in just 5 minutes a day using spaced repetition. 🔴 Live on Dev Hunt → devhunt.org/tool/shortcut-…


The thing I use copilot chat the most for is converting my typescript react components to add a forward ref, can't wait for that syntax to die in React 19, it's so horrible


When is css going to get ::stuck or similar please. styling elements when they are sticky would be so great


This just caused a production bug,😆 i can't even decide what should happen if you pass in dog, or true for that matter

griffadev's tweet image. This just caused a production bug,😆 i can&apos;t even decide what should happen if you pass in dog, or true for that matter

The amount of time I've wasted because people thought it was "faster" to debug DOM strings in console log far outways the imagined "slowness" of just unit testing in a browser. JSDOM + Jest needs to die


George Griffiths รีโพสต์แล้ว

📰 Today, I write about patching globals, why it's so appealing, and five reasons that make it a bad API design. I really think you should read it. Huge thanks to @leeerob and @ljharb for helping me proofread this one. kettanaito.com/blog/why-patch…


Loading...

Something went wrong.


Something went wrong.