Yashaswi Sahuyashaswisahu.hashnode.dev·Nov 16, 2024Understanding Data Flow in React.jsSending Data from Child to Parent A child component can send data to a parent component by using a function passed down as a prop from the parent. // ParentComponent.jsx const [childData, setChildData] = useState(""); const handleData = (data) => { ...coding
Zeeshan Safdarzeeshansafdar.hashnode.dev·Nov 14, 2024💡 State vs. Props in React: A Common Interview Question 💡If you're starting with React or preparing for an interview, you might come across this classic question: What's the difference between state and props? Let's break it down! 👇 🌐 State Internal data: Owned by the component that declares it. Compon...React
Umar Khursheedumarkhursheed.hashnode.dev·Sep 7, 2024Components and Props in ReactJSThe word Props is not a keyword or something. It is a term used to refer to the properties of a JSX component which makes the component unique. It is a feature in React that allows us to make the content of a component dynamic. What is a JSX?It is no...1 likeProps in reactjs
Sherlyne Ochiengsherlynoc.hashnode.dev·Aug 7, 2024Props In ReactWhat is PROPS IN REACT? According to Mozilla Developer Network (MDN) Web docs, PROPS allows for the accessibility of the components. Props allow information to be passed from the top-level component (Parent) to another or the second-level component (...Props in reactjs
Satyam Kalesatyamkale.hashnode.dev·Jul 30, 2024Beginner's Guide to Using Props in ReactWhat are props- Props, short for properties, are a fundamental concept in React that enable components to communicate with each other. They act like channels, allowing data to flow from a parent component to its child components in a unidirectional m...#blogwithcc
Rudraksh Tripathihustlecoder.hashnode.dev·Jul 19, 2024Building a Currency converter using ReactLearning to create a custom hook import {useEffect, useState} from "react" function useCurrencyInfo(currency){ const [data, setData] = useState({}) useEffect(() => { fetch(`https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@late...useState hook
Rudraksh Tripathihustlecoder.hashnode.dev·Jul 17, 2024Props in ReactLearnings about Props in React Props (short for "properties") are a fundamental concept in React that allows you to pass data from parent components to child components. Here’s a summary of the key points: Key Concepts: Definition: Props are inputs...Props in reactjs
Vitthal Korvanvitthal-korvan.hashnode.dev·Jul 10, 2024React JS - Props and EventsProps Props (short for properties) are used in React to pass data from one component to another, usually from a parent component to a child component. Props are immutable, meaning they cannot be changed by the receiving component. Instead, they are m...1 likeReact-MasteryJavaScript
isiagi geofreyisiagi.hashnode.dev·Jun 26, 2024Understanding the Flow of Data in React ComponentsSummary: This article explores how data flows within React App components, covering the composition of components, passing data from parent to child components through props, and passing data from child to parent components via functions. Understandi...2 likesReact
Manvendra Singhnoder254.hashnode.dev·Jun 24, 2024State and Props in ReactIntroduction React, a robust JavaScript library for building user interfaces, is predicated on two fundamental concepts: state and props. These constructs form the backbone of React's declarative paradigm, enabling developers to create dynamic, respo...1 likeReact