Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
Sichere ProgrammierungWe Built a CLI to Find Out If You’re Overpaying for Claude(24.09.2026 um 04:35 Uhr)
•
Sichere ProgrammierungMy own sandbox was killing my agent's shell, and the exit code hid it(24.09.2026 um 04:38 Uhr)
••
Sichere ProgrammierungHow three OSLabs engineers built a CLI to catch you overpaying Claude(24.09.2026 um 04:45 Uhr)
•
Sichere ProgrammierungBreaking CI Guards on Purpose to Prove They Can Fail(24.09.2026 um 05:00 Uhr)
••••
IT Security NachrichtenLangfristige Updatefähigkeit als Pflicht(24.09.2026 um 05:03 Uhr)
••
Sichere ProgrammierungWe Built a CLI to Find Out If You’re Overpaying for Claude(24.09.2026 um 04:35 Uhr)
•
Sichere ProgrammierungMy own sandbox was killing my agent's shell, and the exit code hid it(24.09.2026 um 04:38 Uhr)
••
Sichere ProgrammierungHow three OSLabs engineers built a CLI to catch you overpaying Claude(24.09.2026 um 04:45 Uhr)
•
Sichere ProgrammierungBreaking CI Guards on Purpose to Prove They Can Fail(24.09.2026 um 05:00 Uhr)
••••
IT Security NachrichtenLangfristige Updatefähigkeit als Pflicht(24.09.2026 um 05:03 Uhr)
••
Intelligence View
⚡ tsecurity.de Intelligence

🚀 Day 7 of Learning React: How Do Components Share Data? Understanding Lifting State Up

📌 Missed Day 6? I explored how React renders components, why immutable updates matter, how HMR works behind the scenes, and different approaches to handling forms. You can **read it here* and then come back. I'll wait. ☕️* 🚀 Day 6 o…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

📌 Missed Day 6? I explored how React renders components, why immutable updates matter, how HMR works behind the scenes, and different approaches to handling forms. You can **read it here* and then come back. I'll wait. ☕️*










Yesterday, I spent most of my time learning how React updates the UI.



Today, I ran into a completely different problem.



I had a registration form.



I also had a list of user cards.



Whenever someone filled out the form and clicked Register, I wanted a new user card to appear automatically.



Sounds simple...



Except there was one problem.



The form and the user cards lived in different components.



That's when I learned one of React's most important patterns:




Lifting State Up.




Let's dive in. 🚀









🧠 Quick Recap



Yesterday's big question was:




How does React know when something should be re-rendered?




Here's what I took away from Day 6:




  • 🛍️ map() helps render multiple components from data.

  • 🔄 React prefers immutable updates.

  • 📝 Forms become much cleaner when using a single reusable change handler.

  • 🚫 DRY (Don't Repeat Yourself) makes React code easier to maintain.



Today we're answering a different question:




How do two components share the same data? 🤔










🏗️ The Project



Today's project looked something like this.




App
├── Register
└── UserCard





The Register component collected user information.



The UserCard component displayed all registered users.



Pretty straightforward.



At first, I thought these two components could somehow communicate with each other directly.



They can't.



That misunderstanding was the beginning of today's lesson.







🤔 The Problem



Inside my Register component, I already had state.



const [formData, setFormData] = useState({
name: "",
email: "",
password: "",
image: "",
});





Submitting the form updated formData perfectly.



But another question appeared.




How does UserCard know a new user was registered?




It doesn't.



Because UserCard has absolutely no access to Register's state.



That state belongs only to the Register component.







🚫 Sibling Components Can't Read Each Other's State



This was probably the biggest realization of today's class.



Both components were children of the same parent.



App
├── Register
└── UserCard





That makes them siblings.



And sibling components cannot directly access each other's state.



For a while, I kept thinking there must be some way for one component to "look inside" another.



There isn't.



React doesn't work like that.







💡 The Solution Was Surprisingly Simple



Instead of trying to make the two components communicate...



I moved the shared state up.



From this:



Register
└── users state





To this:



App
├── users state
├── Register
└── UserCard





That small change solved everything.



And that's exactly why this pattern is called:




Lifting State Up.




We're simply moving shared state to the nearest common parent.







📦 The Parent Owns the State



Instead of storing users inside Register, I stored them inside App.



const [users, setUsers] = useState([]);





Now App became the single source of truth.



Instead of owning the users...



The child components simply used them.







📨 Props Started Making Much More Sense



Once the state lived inside App, everything connected beautifully.



Register received the updater function.



<Register setUsers={setUsers} />





Whenever someone submitted the form,



Register simply called:



setUsers((prev) => [...prev, formData]);





It wasn't updating its own state anymore.



It was asking App to update the shared state.



That tiny detail completely changed how I think about props.



They're not just for sending data.



They can also send functions.







🪄 Where Did the New User Card Come From?



This was my favorite part.



I never manually created a new card.



Instead, App rendered the cards like this:



{
users.map((elem) => (
<UserCard
key={elem.email}
user={elem}
/>
));
}





As soon as users changed...



React rendered another UserCard.



No DOM manipulation.



No extra logic.



Just a state update.



That pattern is becoming more and more familiar every day.







💡 My Mental Model



Here's how I visualize today's lesson.



User Fills Form
↓
Register Calls setUsers()
↓
App Updates users State
↓
App Re-renders
↓
Updated users Passed to UserCard
↓
New User Card Appears ✨





That flow made today's topic click for me.







🤝 Why Lift the State?



At first, moving state to another component felt unnecessary.



But after today's project, it actually made perfect sense.



Now there is:




  • ✅ One place where the users are stored.

  • ✅ One source of truth.

  • ✅ Both components stay synchronized.

  • ✅ No duplicated state.



Instead of each component trying to manage the same information...



They simply rely on the parent.







💡 My Biggest Takeaways Today




  • 🏗️ Components don't automatically share state.

  • 👨‍👧 Sibling components can't directly access each other's state.

  • ⬆️ Shared state should live in the nearest common parent.

  • 📨 Props can pass both data and functions.

  • 🔄 Updating the parent's state automatically updates every child that depends on it.







📚 Learning Source



I'm currently learning React through the React Cohort 3.0 by Devendra Dhote at Sheriyans Coding School.



This article isn't a copy of the course.



It's my personal understanding after today's class, rewritten entirely in my own words.



Writing these articles helps me reinforce what I've learned, and hopefully helps other beginners who are on the same journey. 🤝



If I've misunderstood something, I'd genuinely appreciate your corrections in the comments. 😊







🙌 Final Thoughts



Today's lesson wasn't about learning another Hook or another React API.



It was about learning where state actually belongs.



Earlier, I thought state should always stay inside the component that uses it.



Now I know that's not always true.



If multiple components need the same information, the best solution isn't to duplicate the state.



It's to move that state to their nearest common parent and let React's data flow do the rest.



That one idea made component communication feel much less mysterious.



See you on Day 8! 🚀





💬 When you first learned React, did you also try making sibling components share state directly, or did lifting state up click immediately for you? I'd love to hear your experience in the comments. 😊



I'd love to hear your experience in the comments. 😊



If you're following along with this series, you can also find me on GitHub, where I'll be sharing my projects and documenting my progress.










Bismay-exe (Bismay.exe) · GitHub



👋 Hi, I’m Bismay
💻 Developer passionate about building clean, minimal, and elegant apps
🚀 Focused on coding
🌱 Always learning, creating & new ideas - Bismay-exe



favicon
github.com







🤖 AI Disclosure: This article is based on my own React learning journey, class notes, code experiments, and understanding. I used ChatGPT to help improve the writing, structure, and readability of this post. I reviewed and verified the technical explanations before publishing, and I take responsibility for everything shared here.



Thanks for reading! 🚀

SOC Incident Playbook: Remote Code Execution (RCE) Defense
title: Detect Exploitation - 🚀 Day 7 of Learning React: How Do Components Share Data? Understanding Lifting State Up
id: ec37c068-546c-445b-9dd6-4fb81f2aaf9f
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-24
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-24"
        description = "YARA Signature for "
    strings:
        $str = "🚀 Day 7 of Learning React: How" ascii wide
    condition:
        any of them
}
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich 🚀 Day 7 of Learning React: How Do Compon.... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

⚡ Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten 🚀 Day 7 of Learning React: How Do Components Share Data? Understanding Lifting State Up

Thematisch verwandte Begriffe: Learning, React, Components, Share · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-96676 | A vulnerability was identified in Fast FAC1900R 20190827_2.0.2. The impa…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel • Rechts: nächster Artikel • unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel TTP ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger • Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick