<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/sources/flaviocopes/best-of/2024" -->

---
title: Best Flavio Copes posts of 2024 | daily.dev
description: The most upvoted Flavio Copes posts of 2024, curated by the daily.dev community.
canonical: https://daily.dev/sources/flaviocopes/best-of/2024
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:url: https://daily.dev/sources/flaviocopes/best-of/2024
og:type: website
og:site_name: daily.dev
og:title: Best Flavio Copes posts of 2024 | daily.dev
og:description: The most upvoted Flavio Copes posts of 2024, curated by the daily.dev community.
og:image: https://media.daily.dev/image/upload/s--VAY5ToZt--/f_auto/v1724209435/public/daily.dev%20-%20open%20graph
---

# Best of Flavio Copes — 2024

1. 1  
[](/posts/next-js-passing-an-id-to-a-server-action-xfsqscn3h "Next.js, passing an id to a server action")  
[![flaviocopes's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/1f2dbd275797411bbd37bfdaaf0951a9)](/sources/[source]/best-of/[year])  
2m read time • Sep 28, 2024  
### Next.js, passing an id to a server action  
Learn how to pass an \`id\` to a server action in Next.js. The guide covers the simplest method using hidden input fields and an alternative approach using the \`bind()\` method. It includes practical code examples for both techniques.

+4  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/7c87a122721eba666b7933247636e7c7?_a=AQAEuiZ)  
47  
1
2. 2  
[](/posts/the-path-to-learn-web-development-5rdheuajd "The Path to Learn Web Development")  
[![flaviocopes's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/1f2dbd275797411bbd37bfdaaf0951a9)](/sources/[source]/best-of/[year])  
15m read time • Nov 05, 2024  
### The Path to Learn Web Development  
To become a web developer, it's crucial to understand both theory and practice, starting with the fundamentals of the web such as HTTP, HTML, and CSS. Tools like VS Code, the command line, and Git are essential. JavaScript/TypeScript is recommended for both client-side and server-side programming. Additional knowledge of forms, databases, and front-end frameworks like React or Vue, is also important to create dynamic web applications.

+5  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/14df08030220e62ef47b7e378694b3ee?_a=AQAEuj9)  
42  
1
3. 3  
[](/posts/the-aha-stack-ydo19fb81 "The AHA Stack")  
[![flaviocopes's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/1f2dbd275797411bbd37bfdaaf0951a9)](/sources/[source]/best-of/[year])  
28m read time • Oct 07, 2024  
### The AHA Stack  
The AHA Stack, comprising Astro, HTMX, and Alpine.js, leverages a 100% JavaScript/TypeScript approach for building web applications, avoiding complex SPA frameworks. Astro handles the backend, HTMX manages client-server interactions, and Alpine.js introduces client-side interactivity. This stack favors simplicity, reduced complexity, and closer adherence to traditional web principles while still enabling rich, interactive user experiences.

+5  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/14df08030220e62ef47b7e378694b3ee?_a=AQAEuiZ)  
21  
2
4. 4  
[](/posts/benefits-of-using-git-and-github-as-a-solo-dev-2i6nndrwt "Benefits of using Git (and GitHub) as a solo dev")  
[![flaviocopes's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/1f2dbd275797411bbd37bfdaaf0951a9)](/sources/[source]/best-of/[year])  
3m read time • Apr 19, 2024  
### Benefits of using Git (and GitHub) as a solo dev  
Using Git as a solo developer provides advantages such as backup strategy, version control, code history, and collaboration with the Open Source community.

+4  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/7c87a122721eba666b7933247636e7c7?_a=AQAEufR)  
20  
1
5. 5  
[](/posts/why-i-use-alpine-js-xxqmvetlu "Why I use Alpine.js")  
[![flaviocopes's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/1f2dbd275797411bbd37bfdaaf0951a9)](/sources/[source]/best-of/[year])  
3m read time • Jan 15, 2024  
### Why I use Alpine.js  
Alpine.js is a library that adds JavaScript interactivity to HTML pages, simplifying certain tasks such as closing modals and showing/hiding menus. It is a great fit for server-side HTML generation and client-server interactions.

+3  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/7c87a122721eba666b7933247636e7c7?_a=AQAEufR)  
20  
4
6. 6  
[](/posts/generating-uuids-in-javascript-with-window-crypto-randomuuid--ihllecj8t "Generating UUIDs in JavaScript with window.crypto.randomUUID()")  
[![flaviocopes's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/1f2dbd275797411bbd37bfdaaf0951a9)](/sources/[source]/best-of/[year])  
1m read time • Sep 28, 2024  
### Generating UUIDs in JavaScript with window.crypto.randomUUID()  
window.crypto.randomUUID() is a JavaScript method that generates v4 UUIDs, making it easier to create unique identifiers in web applications. This method is part of the Web Crypto API and is supported in all modern browsers. It's simple to use, requires no external libraries, and uses a cryptographically strong random number generator that conforms to RFC 4122 standards.

+4  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/7c87a122721eba666b7933247636e7c7?_a=AQAEuiZ)  
15  
2
7. 7  
[](/posts/adding-react-framer-motion-animations-to-an-astro-site-tmugjaes1 "Adding React Framer Motion animations to an Astro site")  
[![flaviocopes's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/1f2dbd275797411bbd37bfdaaf0951a9)](/sources/[source]/best-of/[year])  
5m read time • Jun 03, 2024  
### Adding React Framer Motion animations to an Astro site  
The post describes how to add React Framer Motion animations to an Astro site and includes the necessary libraries and code. It also explains the use of the 'client:load' directive in Astro to hydrate the React component client-side. The post mentions a tutorial on the Canvas API for those interested in learning more about it.

+3  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/7c87a122721eba666b7933247636e7c7?_a=AQAEuiZ)  
15
8. 8  
[](/posts/why-i-use-htmx-a8gyw0goe "Why I use htmx")  
[![flaviocopes's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/1f2dbd275797411bbd37bfdaaf0951a9)](/sources/[source]/best-of/[year])  
3m read time • Jan 15, 2024  
### Why I use htmx  
The post discusses the AHA Stack and highlights the use of htmx for web development. htmx is a simple, backend-agnostic library that allows any HTML element to initiate an HTTP request and trigger events.

+3  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/7c87a122721eba666b7933247636e7c7?_a=AQAEufR)  
14
9. 9  
[](/posts/the-useoptimistic-hook-ytx8wwlr4 "The useOptimistic hook")  
[![flaviocopes's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/1f2dbd275797411bbd37bfdaaf0951a9)](/sources/[source]/best-of/[year])  
3m read time • Dec 10, 2024  
### The useOptimistic hook  
The useOptimistic hook in React allows for immediate UI updates in response to user actions before the server response is received. You pass the current state and an update function to the hook, which returns the optimistic state and a function to update it. The post includes an example of a todo app demonstrating how to use the hook to manage optimistic UI updates and synchronize with the server state once the response is received.

+4  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/14df08030220e62ef47b7e378694b3ee?_a=AQAEuj9)  
13
10. 10  
[](/posts/git-what-if-you-forgot-to-add-a-file-to-a-commit--z0qxb6qwt "Git, what if you forgot to add a file to a commit?")  
[![flaviocopes's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/1f2dbd275797411bbd37bfdaaf0951a9)](/sources/[source]/best-of/[year])  
1m read time • Apr 18, 2024  
### Git, what if you forgot to add a file to a commit?  
Learn how to add a forgotten file to a commit in Git using the 'git commit --amend' command.

+2  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/7c87a122721eba666b7933247636e7c7?_a=AQAEufR)  
10  
1

[See all Flavio Copes archives](/sources/flaviocopes/best-of)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"CollectionPage","@id":"https://daily.dev/sources/flaviocopes/best-of/2024#page","url":"https://daily.dev/sources/flaviocopes/best-of/2024","name":"Best Flavio Copes Posts of 2024","description":"The most upvoted Flavio Copes posts of 2024, curated by the daily.dev community.","isPartOf":{"@type":"WebSite","url":"https://daily.dev"}},{"@type":"ItemList","@id":"https://daily.dev/sources/flaviocopes/best-of/2024#items","numberOfItems":10,"itemListElement":[{"@type":"ListItem","position":1,"url":"https://daily.dev/posts/next-js-passing-an-id-to-a-server-action-xfsqscn3h","name":"Next.js, passing an id to a server action"},{"@type":"ListItem","position":2,"url":"https://daily.dev/posts/the-path-to-learn-web-development-5rdheuajd","name":"The Path to Learn Web Development"},{"@type":"ListItem","position":3,"url":"https://daily.dev/posts/the-aha-stack-ydo19fb81","name":"The AHA Stack"},{"@type":"ListItem","position":4,"url":"https://daily.dev/posts/benefits-of-using-git-and-github-as-a-solo-dev-2i6nndrwt","name":"Benefits of using Git (and GitHub) as a solo dev"},{"@type":"ListItem","position":5,"url":"https://daily.dev/posts/why-i-use-alpine-js-xxqmvetlu","name":"Why I use Alpine.js"},{"@type":"ListItem","position":6,"url":"https://daily.dev/posts/generating-uuids-in-javascript-with-window-crypto-randomuuid--ihllecj8t","name":"Generating UUIDs in JavaScript with window.crypto.randomUUID()"},{"@type":"ListItem","position":7,"url":"https://daily.dev/posts/adding-react-framer-motion-animations-to-an-astro-site-tmugjaes1","name":"Adding React Framer Motion animations to an Astro site"},{"@type":"ListItem","position":8,"url":"https://daily.dev/posts/why-i-use-htmx-a8gyw0goe","name":"Why I use htmx"},{"@type":"ListItem","position":9,"url":"https://daily.dev/posts/the-useoptimistic-hook-ytx8wwlr4","name":"The useOptimistic hook"},{"@type":"ListItem","position":10,"url":"https://daily.dev/posts/git-what-if-you-forgot-to-add-a-file-to-a-commit--z0qxb6qwt","name":"Git, what if you forgot to add a file to a commit?"}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Sources","item":"https://daily.dev/sources"},{"@type":"ListItem","position":3,"name":"Flavio Copes","item":"https://daily.dev/sources/flaviocopes"},{"@type":"ListItem","position":4,"name":"Best of","item":"https://daily.dev/sources/flaviocopes/best-of"},{"@type":"ListItem","position":5,"name":"2024"}]}]}
```

