Palash
@palashv2
Followers
34K
Following
79K
Media
656
Statuses
26K
Passionate programmer • Front-end developer • Join me on this journey ☕️💻
Joined January 2013
Next.js devs: Add these 4 lines to your `.vscode/settings.json` for an immediate quality-of-life improvement.
32
96
1K
I prefer an [error, data] over { error, data } for async operation results. Why? Because a tuple guarantees the order. Put the error first, which reminds the consumer to handle it. Object keys are order-insensitive and it's easy to forget to check for the "error" key.
64
19
538
The Unified Toolchain for the Web We are thrilled to announce Vite+: A unified, Rust-powered toolchain and drop-in upgrade for @vite_js. Read the full vision in our announcement post! https://t.co/FnIN98xJHa
voidzero.dev
Introducing Vite+, a unified toolchain for JavaScript.
11
80
503
Look at these 2 UIs. One of them will 100% outperform the other for one reason. Miller's Law. Here's how this psychological principle works & how to use it in your products:
86
391
6K
Correct corner radius: Outer = Inner + Padding. Avoid setting them equal!
69
878
11K
Today we are excited to announce Rolldown-Vite: a technical preview of the version of Vite entirely powered by the Rust stack we built over the past year (Oxc + Rolldown): https://t.co/j9nK2y3LvL
voidzero.dev
We introduce Rolldown-Vite, a drop-in replacement for Vite that leverages the power of Rolldown for faster builds and reduced memory usage. Try it out today!
11
170
1K
❌ Avoid Provider wrapping hell in React. ✅ Instead combine all your Providers using composition.
109
178
2K
"A good programmer is someone who always looks both ways before crossing a one-way street." - Doug Linder
17
56
355
React tip: avoid using useEffect() to handle events when you can you can handle them directly when the event happens. ❌ "When messages change, do something; on submit, set messages" = confusing ✅ "On submit, set messages & do something" = clear
30
78
988
💡 2 CSS tips for textareas: 1️⃣ Use `field-sizing: content` to make the textarea auto-resize to its content 2️⃣ Use `lh` units to set the height in the font's computed line-height units
7
213
2K
"Programming is not about typing, it's about thinking." – Rich Hickey
1
5
42
"Start where you are. Use what you have. Do what you can." - Arthur Ashe
0
17
72
"It does not matter how slowly you go as long as you do not stop." - Confucius
3
9
74
React 19 is huge. Here's a cheat sheet. Nine new features: 1. React Server Components - Components that render at build time, or for each request. 2. Actions - Functions that use async transitions and automatically submit data for you. Actions support error handling,
7
75
632