@wlegolas Profile picture

Legolas

@wlegolas

Developer at @thoughtworksbr. In love with JavaScript, CSS, React. A11y enthusiast. Loves share knowledge. Likes are only to see later 😉

Joined September 2011
Similar User
Henrique Custódia 🅰️ photo

@henricustodia

Rob Aarts photo

@Rob_Aarts

sister outsider photo

@afropretanerd

Legolas Reposted

Tailwind devs: stop sleeping on container queries 😤


Legolas Reposted

#UI Workshop ✅ scroll driven animations ✅ view transitions ✅ popovers ✅ container queries nerdy.dev/i-put-a-worksh…


Legolas Reposted

Take my <dialog> this one slides out from the side with an elegant inset, and also offers a mouse effect to show that it supports light-dismiss nerdy.dev/have-a-dialog


Legolas Reposted

📚 The slides + transcript for my talk "React Query API Design - Lessons Learned" from the @ReactAdvanced conference are now available on my blog: tkdodo.eu/blog/react-que…


Legolas Reposted

Next.js 15 next.config.js → next.config.ts


Legolas Reposted

Using Tailwind, Panda, StyleX or any other Atomic CSS library? You are going to want to install this Chrome Extension right now


Legolas Reposted

30 years of KoRn. We’re just getting started. Director: Sebastien Paquet Sound Design: Greg Johnson


Legolas Reposted

HTTPS localhost with Next.js


Legolas Reposted

How to differentiate page.tsx tabs from Next.js in VS Code?


Legolas Reposted

We're all talking about 'errors as values' again. But I find the Result<T> pattern a bit verbose. Here's a method for doing it with as few type annotations as possible 🧵

Tweet Image 1

Legolas Reposted

Here's how you can extract the type from the Set: typescriptlang.org/play/?#code/PT…

Tweet Image 1

Legolas Reposted

❌ Avoid listening for ref changes with useEffect() in React. ✅ Instead use a ref callback function.


Legolas Reposted

Typescript wizardy: `as const` + `satisfies` Combine both to have type safety on Record keys and values + constant inferred types You can then extract both keys and values as unions using `keyof` and `typeof` 🧙

Tweet Image 1

Legolas Reposted

My book, Total TypeScript: Essentials, is finally ready! It covers everything you need to get a job with TypeScript, from setting up your IDE to understanding generics. And it's 100% free. Forever. totaltypescript.com/books/total-ty…


Legolas Reposted

Metadata in Next.js (static and dynamic)


Legolas Reposted

Did you know you can attach types to functions? Super nice pattern for colocating props with your components.


Legolas Reposted

Server waterfalls in Next.js and what you can do about them.


Legolas Reposted

Here's a lovely bit of TS code to turn an object type into an object of getters:


Legolas Reposted

TypeScript 5.5's type predicate inference is SO good omg

Tweet Image 1

United States Trends
Loading...

Something went wrong.


Something went wrong.