Top 3 in Tech: Data fetching in React, VueUse, A beautiful blog

Big news from the React ecosystem: data fetching is about to get a whooole lot easier πŸ”₯ Β β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€ŒΒ β€Œ

Hey there!

Mads here again with a new issue of the Top 3 in Tech newsletter. This time we'll be getting a bit more technical - so please respond to this email if you enjoy this type of detailed content or if you prefer the usual newsletter style πŸ™Œ

Anyways, let's get into it:

​

1. Data fetching in React

There's no denying the amazing popularity of ReactJS and what is has done for the front-end ecosystem. Although technically "just" a library, the ability to use React as a framework to create websites and apps has been a gamechanger for front-end developers. And in the last several years (and probably the next several years too), React has been the undisputed most popular JS framework.

And for good reason! React simplifies a lot of daunting tasks and helped pioneer the "UI as a function of state" paradigm. Meaning that it shouldn't be the job of developers to imperatively keep our UI's in sync with our data when React can do it for us. React also offers a lot of freedom in the tools we choose to use around it - like routing, state management and animations.

And this last point is actually what I wanted to talk about today. Because React dropped a huge RFC ("Request for Comments") proposal this week with some new features for getting data into your components.

While the freedom of React is generally a good thing, it also means there's many different ways to do the same thing - including many wrong or suboptimal ways.

Data fetching is one of those things.

Most frameworks on top of React like NextJS or Remix have their own ways to fetch data like "getServerSideProps" for NextJS or "Loaders" for Remix. Besides that, there's libraries like React-Query or general state-management tools. And then of course, there's good ol' useEffect which​ most React devs have struggled with at one point or another.

Each of these approaches have their own advantages and disadvantages. But in the end, it's confusing for us developers to have to learn so many different approaches for data fetching depending on the project we're working on.

Luckily, that's about to change.

In the earlier mentioned RFC, the React team presents using async / await with Server Components - including an awesome new "use" hook that can be called conditionally (unlike the current React Hooks!) for data fetching.

It's a super interesting proposal and I think exactly what the ecosystem needs to move forward. If you're interested in the details, check out the full RFC here or check out this 12 minute video explaining the changes:

It's gonna be some time before these changes make it into React, but it's an awesome step in the right direction. And I'm super excited to see how it plays out!

​

2. VueUse

And while we're on the topic of cool JavaScript tools, I've been working a lot more with Vue 3 recently. And with Vue 3 comes the Composition API (inspired by React Hooks) - including helper libraries with lots of awesome utilities baked in.

One of these is VueUse. It's a collection of Vue composition functions to do all kinds of cool stuff. Some of the ones I've already enjoyed:

  1. ​"useLocalStorage" to easily sync state with Local Storage.
  2. ​"useStepper" to create and manage multi-step forms.
  3. ​"useDraggable" to make elements draggable while keeping track of their position

​It's an awesome library, and definitely worth checking out if you're working with Vue 3!

​Check out the full list of composition functions in the docs​

​

3. A beautiful blog

Let's round out today's issue with an amazing personal blog.

This website is honestly one of the best I've seen in a while.

It's beautiful, has great content, and is generally just a joy to browse. Just what the Internet was made for! Example:

​All credits to the author of course - so check it out for yourself πŸ”₯​

​

That's it for now! See you soon

​

Did you enjoy today's newsletter?

β€‹πŸ‘ Yes, it was amazing!​

β€‹πŸ˜ Eh, I guess it was ok​

β€‹πŸ‘Ž Not really at all​

​


​

I would really appreciate if you would share the newsletter with your friends on Twitter, LinkedIn, Facebook, by email or copy/paste the link mads.fyi/top3 on other platforms. It really helps to keep me motivated and let the newsletter grow. See you in 2 weeks ✌

β€” Mads Brodt

Key phrases

Older messages

Top 3 in Tech: Learning to code in 5 minutes, Dynamic social images, the CIA website

Wednesday, October 12, 2022

Is it possible to learn coding in just 5 minutes? Let's find out! ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Top 3 in Tech: Dwelling on mistakes, Adobe acquiring Figma, Powerful new CSS selector

Wednesday, September 28, 2022

Hey hey, In this issue of the Top 3 in Tech newsletter we'll reflect on making mistakes as a developer (and how to learn from them). We'll also look at how Adobe acquired Figma for 20 billion

Top 3 in Tech: Landing your first junior development job, How NOT to learn web development, Whats.new shortcuts

Thursday, September 15, 2022

There's never been a more difficult time to land a junior development job - but there are some things you can do to greatly improve your chances. ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Top 3 in Tech: Debugging code, The Lion framework, Animating React with Framer Motion

Wednesday, August 31, 2022

It's easy to get frustrated when stuck on a coding problem. But how can you reframe your thinking and work through the problem logically? ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Top 3 in Tech: No-code tools, Framer, Powerful CSS one-liners

Wednesday, August 17, 2022

What are "no-code" tools and will they end up making developers obsolete? ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

You Might Also Like

📧 Modular Monolith Architecture is now LIVE! 🎉

Thursday, April 25, 2024

​ MMA is now LIVE! The day has finally come. ​Modular Monolith Architecture is now open for enrollment. ​ I can't wait for you to see everything I prepared! 10 in-depth chapters 60+ high-quality

Testing the Rabbit R1's AI assistant

Thursday, April 25, 2024

The Morning After It's Thursday, April 25, 2024. Back in January, startup Rabbit revealed its first device at CES 2024. The R1 is an adorable, vibrant orange AI machine with a camera, scroll wheel,

Zero-Day Alert: State-Sponsored Hackers Exploting Two Cisco Flaws for Espionage

Thursday, April 25, 2024

THN Daily Updates Newsletter cover Coding with AI For Dummies ($18.00 Value) FREE for a Limited Time Boost your coding output and accuracy with artificial intelligence tools Download Now Sponsored

Post from Syncfusion Blogs on 04/25/2024

Thursday, April 25, 2024

New blogs from Syncfusion How BoldSign Improved HR Operations at Syncfusion By Syncfusion HR Team Let's see how Syncfusion's BoldSign revolutionizes HR operations with seamless document

😩Not Another iPad Caaaase!

Thursday, April 25, 2024

The last iPad case you need. See the most loved features you can't live without. The form and style of ZUGU cases have evolved naturally, resulting from designing products that safeguard your

Edge 390: Diving Into Databricks' DBRX: One of the Most Impressive Open Source LLMs Released Recently

Thursday, April 25, 2024

The model uses an MoE architecture which exhibits remarkable perfromance on a relatively small budget. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

US TikTok ban 📱, Meta's $200B drop 📉, Node.js 22 👨‍💻

Thursday, April 25, 2024

President Joe Biden has signed into law a bill that orders TikTok owner ByteDance to sell the company within 270 days or lose access to the US market Sign Up |Advertise|View Online TLDR Together With

Learning about Android Runtime

Thursday, April 25, 2024

View in browser 🔖 Articles Learning about Android Runtime I always enjoy reading articles that explore how something works under the hood. Here's an article that does exactly that, providing

Stripe changes its … stripes

Wednesday, April 24, 2024

TikTok on the president's docket and Nvidia acquires Run:ai View this email online in your browser By Christine Hall Wednesday, April 24, 2024 Good afternoon, and welcome to TechCrunch PM! Today

💪 You Can Use Copilot AI as a Personal Trainer — Why Your Laptop Needs a Docking Station

Wednesday, April 24, 2024

Also: Here's How to Make Your Apple ID Recoverable, and More! How-To Geek Logo April 24, 2024 📩 Get expert reviews, the hottest deals, how-to's, breaking news, and more delivered directly to