π οΈ Make decisions without hand-holding.
π₯ Learn through trial, error, and iteration.
Pick a project, no matter how smallβa to-do app, a portfolio, or even a simple game. The point isnβt perfectionβitβs progress.
The best way to learn code? Write code. π»
08.01.2025 07:23
π 2
π 0
π¬ 0
π 0
Stop Watching, Start Building π
Tutorials are great for learning concepts, but they can quickly become a crutch. Real growth as a coder comes when you step away from βtutorial hellβ and start building projects.
Why? Because building forces you to:
π‘ Solve real problems.
08.01.2025 07:23
π 3
π 0
π¬ 1
π 0
Generics make sure fetchData knows exactly what type of data itβs dealing with β no surprises at runtime!
π¬ How are you using generics in your TypeScript projects?
20.12.2024 11:16
π 2
π 0
π¬ 0
π 0
π Ever wondered how to write a single function that works for ANY data type?
Thatβs where TypeScript generics come in!
Think of them as templates for your code, making it reusable and type-safe.
Below is a simple example to fetch data from an API with a generic type:
20.12.2024 11:16
π 3
π 0
π¬ 1
π 0
ποΈ Database Magic in Pure JavaScript: Meet Node.js SQLite! π
Node.js now has a native SQLite module that lets you create and query databases directly in your JavaScript code.
Note: Currently experimental π οΈ
13.12.2024 20:16
π 3
π 0
π¬ 0
π 0
Reinforcement Fine-Tuningβ12 Days of OpenAI: Day 2
YouTube video by OpenAI
12 Days of OpenAI: Day 2 π₯
Who is watching? π youtu.be/yCIYS9fx56U?...
09.12.2024 18:23
π 3
π 0
π¬ 0
π 0
Server Components π: Offload rendering, fetch data, improve performance.
The Sweet Spot π―: Balance client and server components to unleash the full potential of your React apps.
Embrace the duality, and happy coding! π
09.12.2024 17:28
π 1
π 0
π¬ 0
π 0
βοΈ React Devs, listen up! π
The React team said it best: "Client components are fine, btw. The goal isn't to move everything to React server components. You need both. Client and server."
Client Components β‘οΈ: Essential for dynamic UIs and user interactions.
09.12.2024 17:28
π 3
π 0
π¬ 1
π 0
It's easy to use, just pass in the keys and the value type. Happy typing π!
#TypeScript #WebDevelopment
04.12.2024 06:40
π 2
π 0
π¬ 0
π 0
π TypeScript Tip: Record<Keys, Type> is a handy utility type that helps you create an object type with specified keys and value types.
This comes in handy when you want to ensure that an object has a certain set of keys and their respective value types.
04.12.2024 06:40
π 3
π 0
π¬ 1
π 0
π‘ In your `useEffect` hook, you can check if the `beforeunload` event is triggered and display a confirmation dialog if necessary.
Follow @ruckydev.bsky.social for more React tips.
#reactjs
04.12.2024 06:26
π 3
π 0
π¬ 0
π 0
π¨ Detecting page exits with React? π€
Use `useEffect` with `beforeunload` event! π‘
Here's how it works:
π¨ When the user navigates away from the page, the `beforeunload` event is triggered.
04.12.2024 06:26
π 0
π 0
π¬ 1
π 0
4. After the delay, it updates the real count
The result? A super responsive UI that feels fast and smooth!
Have you tried useOptimistic hook yet? What cool uses can you think of for your projects?
04.12.2024 06:22
π 0
π 0
π¬ 0
π 0
Check out the attached code snippet for a simple counter example. Here's what's happening:
1. We create an optimistic count that updates instantly
2. When you click "Increment", you see the count go up immediately
3. Behind the scenes, it simulates a delay (like a network request)
04.12.2024 06:22
π 0
π 0
π¬ 1
π 0
How does it work?
1. You give it your current state
2. You provide a function to update that state
3. It returns an "optimistic" version of the state that you can use right away
Why "optimistic"?
Because it optimistically shows the result of an action before it's actually complete!
04.12.2024 06:22
π 0
π 0
π¬ 1
π 0
π React Developers: Introducing useOptimistic - The Hook for Instant UI Updates!
What is useOptimistic hook?
It's a new React hook that lets you show an updated UI state immediately, even while an async action (like a network request) is still in progress.
04.12.2024 06:22
π 0
π 0
π¬ 1
π 0
shadcn/ui
Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
π React Component Libraries to Check Out in 2024
β’ ShadcnUI - ui.shadcn.com
β’ Mantine - mantine.dev
β’ Material UI - lnkd.in/dfyZ2β¦
β’ Ant Design - ant.design
β’ Vercel Geist - vercel.com/geist
β’ Tailwind UI - tailwindui.com
β’ Chakra UI - chakra-ui.com
β’ Next UI - nextui.org
24.11.2024 17:59
π 10
π 0
π¬ 0
π 0