🚀 @nextjs team, loving the new RC! 👏
I'm using the latest release, which is off the default page cache. In my app, I query data using @prisma, but I want to cache the result with revalidation time.
How can I implement this now? Any pointers would be appreciated! 🙏
Apple just announced a ton of incredible AI developments at WWDC.
The 11 most impressive reveals:
1. Using the iPad calculator as a notepad and getting real-time answers
After 8 months of planning, 12 hours of filming, and 2 weeks of editing, my biggest project has been released.
The Modern Full-Stack React Tutorial is now live, FOR FREE, on my YouTube channel
When React launched in 2013, every component was a class.
When stateless function components arrived in 2015, I only used class components when I needed state.
When hooks arrived in 2019, I stopped using class components.
Now that React Server Components are here, I use hooks less.
React is 10 years old. But it remains popular because it keeps innovating.
Are React Server Components web-only or can they be used anywhere?
What would it look like if @Expo added React Server Components for native iOS and Android platforms...
🧵 Find out now ↓
Future CSS Tip! 🍏
You can create that Apple style blow out text effect with CSS scroll-driven animations ⚡️ No JavaScript!
The trick is to animate SVG text along the z-axis using 3D transforms 👀
.word {
animation: blow-out both ease-in;
animation-timeline: --section; 👈
animation-range: exit-crossing 10% exit 0%;
}
keyframes blow-out {
to { transform: translate3d(0.05ch, 0, 99vh); }
}
The animation makes the text cover the viewport and blends into the next section which has the same background-color 🤙
The section is set to 200vh. But the wrapper around the SVG text defines perspective and transform-style
.section__content {
transform-style: preserve-3d; 👈
perspective: 100vh;
}
We're using an SVG to maintain the crispness of the text as it scales up ✨ Use these attributes on the <text> within the SVG to align things 🤙
<text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle">
Your Name
</text>
It's the last day of #AppleEvent week but I do have some more of these I'll put together next week 😉
@CodePen link below! 👇
I started working with React Server Components (RSC) for the first time at @documenso.
This article by @JoshWComeau has been extremely helpful & useful!
https://t.co/ZfE2jqM7K7
Been doing a lot of copy paste lately. So I’m going to copy what @rauchg did and donate all my monthly @X earnings to the dev community.
Starting with $500 (if it’s less than this I’ll add the rest).
If you’re a student and/or working on an open source project and you need fund to buy a laptop, a course or a license, send me a dm, I’ll get it for you.
Thanks.
New post after a break!
* Read about how React components relate
* View diagrams of parent and owner component hierarchies
* Learn about how being aware of this can lead to apps with cleaner data flow
https://t.co/KmonpesizD
Let's push it further: you should always have this on when developing user interfaces in the browser.
Catch those race conditions, flakiness, and other network latency-related issues while developing. Full control over the network with @ApiMocking.