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

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

🔎 How to Search Reddit Like a Pro — 9 Reasons to Always Use Windows With a VPN

Tuesday, November 12, 2024

Also: Tips for Setting Up a Mobile VR Office, and More! How-To Geek Logo November 12, 2024 Did You Know In the 2016 film Doctor Strange, the characters of both Doctor Strange and the villain Dormammu (

Web Scraping Tips, Python 3.13 Performance Boosts, Writing Interpreters & More

Tuesday, November 12, 2024

Introduction to Web Scraping With Python #655 – NOVEMBER 12, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Introduction to Web Scraping With Python In this video course, you'll learn all about

Daily Coding Problem: Problem #1606 [Easy]

Tuesday, November 12, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by PayPal. Given a binary tree, determine whether or not it is height-balanced. A height-

Charted | Breaking Down the U.S. Government's 2024 Fiscal Year 💰

Tuesday, November 12, 2024

Net interest payments cost the US government $882 billion in fiscal year 2024, the third-largest outlay in the final budget. View Online | Subscribe | Download Our App Presented by Hinrich Foundation

Spyglass Dispatch: AI's Independence Race • EU's Bad Meta Ads • AI Chip Shenanigans • Netflix Ads Religion

Tuesday, November 12, 2024

AI's Independence Race • EU's Bad Meta Ads • AI Chip Shenanigans • Netflix Ads Religion The Spyglass Dispatch is a free newsletter sent out daily on weekdays. Feel free to forward it on to

The Big T

Tuesday, November 12, 2024

Top Tech Content sent at Noon! How the world collects web data Read this email in your browser How are you, @newsletterest1? 🪐 What's happening in tech today, November 12, 2024? The HackerNoon

Deadline Extended: 2 Weeks Left to Compete for Over $7000 in the AI-chatbot Writing Contest🔥

Tuesday, November 12, 2024

Great news, newsletterest1 ! The submission deadline for the #ai-chatbot writing contest has been extended! You now have until November 21, 2024, to submit your unique AI chatbot ideas for a chance to

A very demure, very mindful issue

Tuesday, November 12, 2024

Plus a look at memory regions, Go's birthday, and we invent a brand new word. | #​531 — November 12, 2024 Unsub | Web Version Together with Frontend Masters logo Go Weekly Happy Birthday, Go! Go

Visual Capitalist is revealing all of its biggest secrets... 📊

Tuesday, November 12, 2024

You can get in on our newest project if you act now. View Online | Subscribe | Download Our App We're revealing our biggest secrets... The question we get asked the most is: "How does Visual

🔓🐍 Unlock Your Python Potential with Instructor-Led Courses

Tuesday, November 12, 2024

Hey there, If you've been looking for a way to go beyond on-demand tutorials and really master Python, we've got something special for you... For the first time, Real Python is launching an