George Griffiths
griffadev.bsky.social
George Griffiths
@griffadev.bsky.social
Software engineer from the UK. React is mid and so are web components
Chalk moving to ESM has caused so much wasted time, I don't blame chalk, the whole ecosystem is just broken. ERR_REQUIRE_ESM can fuck off.
February 18, 2025 at 11:13 AM
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.
February 4, 2025 at 3:57 PM
I feel like the native `<details>` element should support `defaultOpen` so you can support use cases like controlling open from the outside but only for the initial render, and open property taking over from then on. This might just be an issue with react not working well with the element tbf.
January 28, 2025 at 3:19 PM
Went back and added a CLI visualisation to Day 6 Advent of Code part 1, fun to watch! The real input took a while to print out, my computer screen went to sleep and I lost it. #AdventOfCode
December 7, 2024 at 9:38 PM