Kevin Porten (@KevinPorten) header
Kevin Porten (@KevinPorten) profile picture
Deutschland
Joined March 2017
⚛️ I can't emphasize enough the power of composition in React. Props are not the only way to customize components, you can use composition to tweak the layout and elements you want to show within a composed component ↓
10
86
3
668
59,336
Kevin Porten retweeted
Node.js 21 is now available! Node.js 20 is being promoted to long-term support (LTS). Main updates: ⚡ V8 JavaScript engine updated to 11.8 🤝 Stable WebStreams 🧪 A new experimental flag to flip module defaults 🏃 Updates to test runner hubs.la/Q025HG8t0
17
357
48
1,444
238,073
How loading.jsx works when combined with Suspense in Next.js 13
12
88
2
845
93,418
Server Actions in Next.js 13
33
159
15
1,221
230,815
Tired of writing if statements every time you need to check if something's defined? Make a little 'raise' function to throw an error, and inline it with a nullish coalescing operator. Thanks to @heyImMapleLeaf for this one.
34
162
10
1,725
158,982
Kevin Porten retweeted
💻 The expand, migrate, & contract pattern People often ask us what should come first: application code changes or schema changes. The answer is a little complex, but important to understand if you want to ship no downtime and backward compatible schema changes. Let's dive in.
1
12
1
63
11,259
Change Array By Copy ➡️ now supported by all browsers! 🥳️ Firefox (last one) recently added support in v115 Super useful for React devs and state updates! ⚛️ New convenient Array methods to update arrays in an immutable way 🙌: - toSorted - toReversed - toSpliced - with
8
37
5
220
63,232
Kevin Porten retweeted
Can you believe these slides are full page loads to completely new HTML pages‽ #smashingconf smashing-transitions.netlify… ^ try it with Canary and enable the flag chrome://flags/#view-transition-on-navigation what. rad. tech. 🤯
35
360
36
2,707
457,141
Refactoring existing React app with Context to Server Components
9
141
9
998
111,512
Kevin Porten retweeted
🔥 JavaScript import maps are now in all the browsers! Here is how they work with ES modules.
19
171
16
1,161
129,831
ECMAScript excitement 😉 Congrats to my coworker @acutmore @TechAtBloomberg on advancing the Await Dictionary proposal to Stage 1 @TC39 🎉 Promise.all returns positional results as an array. This proposal will allow named results inside an object 👍
2
7
63
16,388
Kevin Porten retweeted
Useful trick if you ever need to use inline styles because a value is coming from the database or something but also need to change those styles on hover or similar — Use those values to set CSS variables using inline styles, then use arbitrary values to read the variables 🧠
28
106
6
1,238
162,525
CSS Tip! ✨ Create that little shiny border movement 👀 It's a rotating conic-gradient that you flip halfway with some interesting easing 🤓 animation: flip 2s infinite steps(2, end); @ keyframes flip { to { rotate: 360deg; } } We're gonna go through it now 👇
8
67
4
569
66,348
Kevin Porten retweeted
2023 State of Databases for Serverless & Edge An overview of 30+ solutions and emerging trends ↓
31
101
1
728
209,025
A brief thread. 'as const' has more uses than you might think.
63
409
19
3,775
527,224
Kevin Porten retweeted
How I use Tailwind in Next.js 👇
57
264
14
2,309
234,252
Kevin Porten retweeted
CSS Tip! ✨ You can't nest :has() But, you can chain it! 💪 For example, this rule says a "to" and "from" are checked in the form 📅 .cal:has([id*=from]:checked):has([id*=to]:checked) { ...styles } Got wild pushing limits for this one though 👀 @CodePen link below! 👇
16
102
4
894
89,724
Kevin Porten retweeted
🔥 Use TypeScript's `never` to enforce "one or the other" properties on a type
19
95
10
978