Legolas
@wlegolas
Followers
146
Following
2K
Media
8
Statuses
3K
Developer at @thoughtworksbr. In love with JavaScript, CSS, React. A11y enthusiast. Loves share knowledge. Likes are only to see later 😉
Belo Horizonte/Mg/Brasil
Joined September 2011
O Google acaba de lançar cursos gratuitos de IA. Não há taxas de inscrição nem precisas de conhecimentos prévios. Aqui estão 8 cursos que não vais querer perder.
1
106
880
💡 CSS Tip! In Anchor Positioning, you can use position-area to place an element relatively to its anchor, but there are 36 different positions !? 👀 No one can memorize them all, so I've created an interactive demo from where you can get the code. https://t.co/2urCahrQNn
3
59
457
shadcn CLI 3.0 is now available: support for namespaced registries, advanced authentication, new commands, and a completely rewritten registry engine. Let’s take a look at what’s new ↓
105
233
3K
Ok these are the TOOLS (not libraries) TO MAKE @shadcn BEAUTIFUL that I found so far ⚔️ - Tweakcn: Make beautiful Shadcn themes by @iamsahaj_xyz - PatternCraft: Amazing backgrounds just to copy paste by @meghtrix - @v0: Simple prompting makes your UI beautiful - Evil Charts:
I'm looking for tools to make @shadcn apps beautiful for my next video. Any suggestions?
9
14
266
You asked, I answered: Here's how to stream 'next question suggestions' using the AI SDK. Get ready for your feed to be full of production-ready patterns like this.
9
32
463
. @tan_stack Query has 3 amazing new features you should know about!
4
11
123
🧵 It's 3 AM. Your app is making the same API calls thousands of times. Rate limits are hitting. Timeouts everywhere. Your makeshift Map() cache is eating all your RAM. There's a better way. Let me show you how we got 550x faster responses with undici-cache-redis 👇
7
38
366
If you notice prettier-plugin-tailwindcss isn’t sorting tailwind classes correctly, it’s because starting from v4 you need to specify your CSS entry file. This was driving me crazy 😅
12
13
308
Como você lida com erros no Node.js? Se você só usa "throw new Error", pode estar deixando passar muita coisa já que não é possível diferenciar erros esperados dos não-esperados. Uma forma elegante pra iniciantes é nomear cada erro esperado e estender uma classe base 👇🏻
2
7
107
Microsoft acaba de lanzar "MCP para principiantes". Diseñado para desarrolladores y desde cero. ✓ Disponible en Español ✓ 25 módulos: fundamentos, servers, devtools... ✓ Ejemplos en Python, JavaScript, C# .NET y Java → https://t.co/0PXGprZPZg
8
425
2K
CSS Tip 💡 You may not know that we can define rotation using "turn" unit in CSS 🤩👇
9
105
755
want to increase the click area without messing up your layout? try `:after` with `position: absolute` + `inset: -{value}px` this creates a larger, invisible hit area around the element, making it easier to click without changing the layout
38
145
3K
📚 Got some questions around the `select` option lately: - How to make typed abstractions - How to make sure it doesn't run too often So per my own rules, I had to write a blogpost about it: https://t.co/Yqm1KojRaw
tkdodo.eu
How to get the most out of select, sprinkled with some TypeScript tips.
9
22
216
This repo looks like this now. I have now built the same app 22 times for my workshop where I teach different data loading patterns in React Router, TanStack Router, Next.js, and even a bit of Astro and Sveltekit too. And, of course, how to use TanStack Query with all of them.
Over the past couple of months, I gave 3 similar talks about TanStack Query and fetching in React in general. I ended up making a monorepo with the same app built in 10+ different ways in order to show an apples to apples comparison of various ways to fetch data in your app.
14
55
634
Avoid using overly generic remotePatterns in Next.js to prevent potential image endpoint abuse
2
22
320
"How do I exclude server actions from middleware in Next.js?" 👇
12
26
457
Dica de segurança (e praticidade) para quem usa 1Password. O 1Password tem uma CLI que você pode usar para não precisar ficar adicionando secrets dos projetos na sua máquina. E por que é seguro? Scripts maliciosos podem ser executados por pacotes usados por seu projeto e podem
3
10
168