⚛️ React Routing (Complete Overview)
React Routing allows a React app to display different components based on the URL without reloading the page.
Since React apps are Single Page Applications (SPAs), routing is handled on the client side using React Router.
It makes your app feel fast and smooth because only the needed component updates — not the whole page.
🔑 Main Components in React Router
1️⃣ BrowserRouter
Wraps your entire app and enables routing using the browser’s history API.
import { BrowserRouter } from "react-router-dom";
<BrowserRouter>
<App />
</BrowserRouter>
2️⃣ Routes
A container that holds all your route definitions.
<Routes>
{/* Routes go here */}
</Routes>
3️⃣ Route
Defines which component should render for a specific path.
<Route path="/about" element={<About />} />
path → URL path
element → Component to display
4️⃣ Link
Used to navigate between pages without refreshing.
import { Link } from "react-router-dom";
<Link to="/about">About</Link>
It replaces the normal <a> tag because <a> reloads the page, but Link keeps the SPA behavior.
@futurefullstack
React Routing allows a React app to display different components based on the URL without reloading the page.
Since React apps are Single Page Applications (SPAs), routing is handled on the client side using React Router.
It makes your app feel fast and smooth because only the needed component updates — not the whole page.
🔑 Main Components in React Router
1️⃣ BrowserRouter
Wraps your entire app and enables routing using the browser’s history API.
import { BrowserRouter } from "react-router-dom";
<BrowserRouter>
<App />
</BrowserRouter>
2️⃣ Routes
A container that holds all your route definitions.
<Routes>
{/* Routes go here */}
</Routes>
3️⃣ Route
Defines which component should render for a specific path.
<Route path="/about" element={<About />} />
path → URL path
element → Component to display
4️⃣ Link
Used to navigate between pages without refreshing.
import { Link } from "react-router-dom";
<Link to="/about">About</Link>
It replaces the normal <a> tag because <a> reloads the page, but Link keeps the SPA behavior.
@futurefullstack
👍6
👍5
Forwarded from Zaya
Some developer resources i know that quietly save HOURS
• UI & Components : Magic UI - ready to use animated components for Next.js + Tailwind. Saves you from rebuilding modern interactions from scratch.
👉 https://magicui.design/
• Design Tools : Figma Community - thousands of free UI kits, icons and full design systems you can directly turn into real apps.
👉 https://www.figma.com/community
• Coolors - instantly generates balanced color palettes and exports them to CSS, SVG or design tools.
👉 https://coolors.co/
• Dev Productivity Tools : Responsively App - run your website on multiple device screens at the same time with synced interactions (it is amazing for responsive testing).
👉 https://responsively.app/
• JSON Crack : converts messy API JSON into visual graphs so you can understand backend data structures instantly.
👉 https://jsoncrack.com/
• Flutter Inspiration : Flutter Awesome - curated Flutter apps, UI ideas and packages to speed up development.
👉 https://flutterawesome.com/
#WorthSharing
#zaya_journal
• UI & Components : Magic UI - ready to use animated components for Next.js + Tailwind. Saves you from rebuilding modern interactions from scratch.
👉 https://magicui.design/
• Design Tools : Figma Community - thousands of free UI kits, icons and full design systems you can directly turn into real apps.
👉 https://www.figma.com/community
• Coolors - instantly generates balanced color palettes and exports them to CSS, SVG or design tools.
👉 https://coolors.co/
• Dev Productivity Tools : Responsively App - run your website on multiple device screens at the same time with synced interactions (it is amazing for responsive testing).
👉 https://responsively.app/
• JSON Crack : converts messy API JSON into visual graphs so you can understand backend data structures instantly.
👉 https://jsoncrack.com/
• Flutter Inspiration : Flutter Awesome - curated Flutter apps, UI ideas and packages to speed up development.
👉 https://flutterawesome.com/
#WorthSharing
#zaya_journal
❤3
[ 20 GitHub repositories that will give you superpowers ]
1. Developer Roadmap
https://github.com/kamranahmedse/developer-roadmap
Up-to-date roadmap to becoming a developer.
2. Awesome AI Tools
https://github.com/mahseema/awesome-ai-tools
A curated list of top Artificial Intelligence tools.
3. Awesome
https://github.com/sindresorhus/awesome
Awesome lists about all kinds of interesting topics.
4. Free Programming Books
https://github.com/EbookFoundation/free-programming-books
A huge list of freely available programming books.
5. Coding Interview University
https://github.com/jwasham/coding-interview-university
A complete computer science study plan.
6. JavaScript Algorithms
https://github.com/trekhleb/javanoscript-algorithms
Algorithms and data structures implemented in JavaScript.
7. Node Best Practices
https://github.com/goldbergyoni/nodebestpractices
The Node.js best practices list.
8. Tech Interview Handbook
https://github.com/yangshun/tech-interview-handbook
Curated coding interview preparation materials.
9. Project Based Learning
https://github.com/practical-tutorials/project-based-learning
A curated list of project-based tutorials.
10. 30 Seconds of Code
https://github.com/Chalarangelo/30-seconds-of-code
Short JavaScript code snippets.
11. Free for Dev
https://github.com/ripienaar/free-for-dev
SaaS, PaaS, and IaaS offerings with free tiers.
12. Design Resources for Developers
https://github.com/bradtraversy/design-resources-for-developers
Stock photos, templates, frameworks, and tools.
13. App Ideas
https://github.com/florinpop17/app-ideas
Application ideas to improve your coding skills.
14. Build Your Own X
https://github.com/codecrafters-io/build-your-own-x
Recreate popular technologies from scratch.
15. Real World
https://github.com/gothinkster/realworld
A Medium clone built with multiple frontends and backends.
16. Public APIs
https://github.com/public-apis/public-apis
A comprehensive list of free APIs.
17. System Design Primer
https://github.com/donnemartin/system-design-primer
Learn how to design large-scale systems.
18. The Art of Command Line
https://github.com/jlevy/the-art-of-command-line
Command line mastery in one page.
19. Awesome Repositories
https://github.com/pawelborkar/awesome-repos
Free GitHub resources.
20. The Book of Secret Knowledge
https://github.com/trimstray/the-book-of-secret-knowledge
Cheatsheets, blogs, hacks, tools, and more.
Source[DOT_RUTH]
@futurefullstack
1. Developer Roadmap
https://github.com/kamranahmedse/developer-roadmap
Up-to-date roadmap to becoming a developer.
2. Awesome AI Tools
https://github.com/mahseema/awesome-ai-tools
A curated list of top Artificial Intelligence tools.
3. Awesome
https://github.com/sindresorhus/awesome
Awesome lists about all kinds of interesting topics.
4. Free Programming Books
https://github.com/EbookFoundation/free-programming-books
A huge list of freely available programming books.
5. Coding Interview University
https://github.com/jwasham/coding-interview-university
A complete computer science study plan.
6. JavaScript Algorithms
https://github.com/trekhleb/javanoscript-algorithms
Algorithms and data structures implemented in JavaScript.
7. Node Best Practices
https://github.com/goldbergyoni/nodebestpractices
The Node.js best practices list.
8. Tech Interview Handbook
https://github.com/yangshun/tech-interview-handbook
Curated coding interview preparation materials.
9. Project Based Learning
https://github.com/practical-tutorials/project-based-learning
A curated list of project-based tutorials.
10. 30 Seconds of Code
https://github.com/Chalarangelo/30-seconds-of-code
Short JavaScript code snippets.
11. Free for Dev
https://github.com/ripienaar/free-for-dev
SaaS, PaaS, and IaaS offerings with free tiers.
12. Design Resources for Developers
https://github.com/bradtraversy/design-resources-for-developers
Stock photos, templates, frameworks, and tools.
13. App Ideas
https://github.com/florinpop17/app-ideas
Application ideas to improve your coding skills.
14. Build Your Own X
https://github.com/codecrafters-io/build-your-own-x
Recreate popular technologies from scratch.
15. Real World
https://github.com/gothinkster/realworld
A Medium clone built with multiple frontends and backends.
16. Public APIs
https://github.com/public-apis/public-apis
A comprehensive list of free APIs.
17. System Design Primer
https://github.com/donnemartin/system-design-primer
Learn how to design large-scale systems.
18. The Art of Command Line
https://github.com/jlevy/the-art-of-command-line
Command line mastery in one page.
19. Awesome Repositories
https://github.com/pawelborkar/awesome-repos
Free GitHub resources.
20. The Book of Secret Knowledge
https://github.com/trimstray/the-book-of-secret-knowledge
Cheatsheets, blogs, hacks, tools, and more.
Source[DOT_RUTH]
@futurefullstack
❤5👍3
Custom Hooks in React
A custom hook is a JavaScript function that:
Starts with use
Uses built-in hooks like useState or useEffect
Reuses stateful logic between components
👉 Custom hooks reuse logic, not UI.
Why Use Custom Hooks?
Instead of repeating logic (fetching data, forms, pagination, auth), you extract it into one reusable function.
This keeps components:
Cleaner,Smaller,Easier to maintain
Simple Real Example
Use it inside a component:
Now the fetching logic is reusable anywhere.
Key Idea
Custom Hooks = Reusable stateful logic
They: Don’t return JSX, Don’t render UI
Only manage logic
@futurefullstack
A custom hook is a JavaScript function that:
Starts with use
Uses built-in hooks like useState or useEffect
Reuses stateful logic between components
👉 Custom hooks reuse logic, not UI.
Why Use Custom Hooks?
Instead of repeating logic (fetching data, forms, pagination, auth), you extract it into one reusable function.
This keeps components:
Cleaner,Smaller,Easier to maintain
Simple Real Example
import { useState, useEffect } from "react";
function useFetch(url) {
const [data, setData] = useState(null);
useEffect(() => {
fetch(url)
.then(res => res.json())
.then(data => setData(data));
}, [url]);
return data;
}
Use it inside a component:
const data = useFetch("https://api.example.com/data");
Now the fetching logic is reusable anywhere.
Key Idea
Custom Hooks = Reusable stateful logic
They: Don’t return JSX, Don’t render UI
Only manage logic
@futurefullstack
👍2
I’ve realized that learning without practice doesn’t really benefit me. So instead of just reading and watching tutorials, I decided to build something.
I’m starting a simple CryptoTrack website to track cryptocurrency prices, and I’ll make it have multiple pages so I can properly practice routing in React.
Time to turn learning into building 💻
@futurefullstack
I’m starting a simple CryptoTrack website to track cryptocurrency prices, and I’ll make it have multiple pages so I can properly practice routing in React.
Time to turn learning into building 💻
@futurefullstack
👍5🔥2🏆1
Just finished my first React project — Simple CryptoTracker
Real multi-page app.
Real APIs.
Real data.
🏠 Home
📊 Market
📄 Coin Details
📰 News
What this project really taught me:
• Routing like a real app
• Fetching and handling live crypto data
• Managing loading states
• Structuring components properly
Live Demo
Repo
@futurefullstack
Real multi-page app.
Real APIs.
Real data.
🏠 Home
📊 Market
📄 Coin Details
📰 News
What this project really taught me:
• Routing like a real app
• Fetching and handling live crypto data
• Managing loading states
• Structuring components properly
Live Demo
Repo
@futurefullstack
🔥4👍2
Forwarded from Abdre
was just reading some news today and it honestly blew my mind.
we mostly just use AI to help us code or write emails, but it turns out the US military has been using tools like Claude for actual combat planning. there are even reports they used AI during the recent airstrikes on Iran.
the crazy part is the drama behind it. Anthropic (the company behind Claude) actually pushed back. they drew a hard line saying they wouldn't allow their AI to be used for fully autonomous weapons. because of that, the pentagon basically cut ties with them and went looking for other companies (like OpenAI) who would agree to their terms.
it’s just wild to think about. AI isn't just our little coding assistant anymore.. it’s literally becoming the brain behind global warfare.
kind of a scary reality check today. what do you guys think about AI being used for stuff like this?
we mostly just use AI to help us code or write emails, but it turns out the US military has been using tools like Claude for actual combat planning. there are even reports they used AI during the recent airstrikes on Iran.
the crazy part is the drama behind it. Anthropic (the company behind Claude) actually pushed back. they drew a hard line saying they wouldn't allow their AI to be used for fully autonomous weapons. because of that, the pentagon basically cut ties with them and went looking for other companies (like OpenAI) who would agree to their terms.
it’s just wild to think about. AI isn't just our little coding assistant anymore.. it’s literally becoming the brain behind global warfare.
kind of a scary reality check today. what do you guys think about AI being used for stuff like this?
🗺️ Feeling lost about what to learn next?
Check out roadmap.sh — it gives clear, step-by-step roadmaps for Frontend, Backend, Full-Stack, React, Node.js and more.
Instead of randomly watching tutorials, you follow a structured path that shows:
✔️ What to learn
✔️ In what order
✔️ What actually matters
Stop guessing. Follow a roadmap.
@futurefullstack
Check out roadmap.sh — it gives clear, step-by-step roadmaps for Frontend, Backend, Full-Stack, React, Node.js and more.
Instead of randomly watching tutorials, you follow a structured path that shows:
✔️ What to learn
✔️ In what order
✔️ What actually matters
Stop guessing. Follow a roadmap.
@futurefullstack
❤5
Today I learned about TanStack Query and how it simplifies data fetching and caching in React. It’s interesting to see how it removes a lot of the complexity we usually deal with when using useEffect and manual state management.
I also tried to refactor my CryptoTracker project using what I learned. The refactoring went pretty well and the structure feels better now.
Unfortunately, there’s one bug I couldn’t debug today 😅. I’ll revisit it tomorrow with a fresh mind.
That’s it for today.
Good night everyone 🌙
@futurefullstack
I also tried to refactor my CryptoTracker project using what I learned. The refactoring went pretty well and the structure feels better now.
Unfortunately, there’s one bug I couldn’t debug today 😅. I’ll revisit it tomorrow with a fresh mind.
That’s it for today.
Good night everyone 🌙
@futurefullstack
❤4🔥1