Sourabh Shrivastava Profile
Sourabh Shrivastava

@sourabh563

Followers
16
Following
171
Media
17
Statuses
115

Joined January 2022
Don't wanna be here? Send us removal request.
@sourabh563
Sourabh Shrivastava
2 years
RT @LearnersBucket: When you are asked what is the difference between local storage and cookies during frontend interview. Tell them, that….
0
12
0
@sourabh563
Sourabh Shrivastava
2 years
RT @IndianTechGuide: Today is all about Team ISRO β€οΈπŸš€πŸ™Œ #Chandrayaan3.
0
7K
0
@sourabh563
Sourabh Shrivastava
2 years
RT @Pankajdhya18: #BiggBosOTT2 | Kiska Fan Base Hai Most Active?.Bata do aaja sabko #ElvishArmy . #AbhishekMalhan #FukraInsaan #ElvishYada….
0
46
0
@sourabh563
Sourabh Shrivastava
2 years
RT @raghav_heda: Hello people due to some unfortunate conditions I have to cancel my plan of attending #ReactNexus conference that is going….
0
2
0
@sourabh563
Sourabh Shrivastava
2 years
RT @Redisinc: Calling all IT developers and architects: Join us on July 12th for a FREE content-packed day of Redis learning and exploring.….
0
69
0
@sourabh563
Sourabh Shrivastava
2 years
RT @iAmSujitMemane: πŸ”₯ Redesigned the Hero Section of @Ashneer_Grover 's hottest startup, CrickPe. How to play with users' minds 🧠?.A Threa….
0
2
0
@sourabh563
Sourabh Shrivastava
2 years
RT @iAmSujitMemane: πŸ’‘Decoding the Ideal Developer Portfolio: What Does Perfection Look Like? πŸ’Ό. A Thread πŸš€
Tweet media one
0
2
0
@sourabh563
Sourabh Shrivastava
2 years
In this example, the parent component passes the updateData callback to the child component. When the child component's button is clicked, it triggers the callback, updating the parent's data, which is then displayed in the parent component. πŸ”„πŸ’ͺ🏻.
0
0
0
@sourabh563
Sourabh Shrivastava
2 years
🧡 Let's make it happen with code snippets! ✨
Tweet media one
Tweet media two
1
0
0
@sourabh563
Sourabh Shrivastava
2 years
πŸ” Reverse Data Flow: Child ➑️ Parent Components πŸ‘©πŸ»β€πŸ¦±πŸ§’πŸ». Child components updating parent data? React has you covered! Using callbacks, children can call functions passed as props by parents, enabling them to update parent data. πŸ”„.
1
0
0
@sourabh563
Sourabh Shrivastava
2 years
Achieving Reverse Data Flow: Child ➑️ Parent Components πŸ‘©πŸ»β€πŸ¦±πŸ§’πŸ». Wondering how child components can update data in their parents? Fear not! In this thread, we'll unravel the secret of reverse data flow, allowing children to communicate with their parents. Let's get started! πŸš€πŸ”€.
1
0
0
@sourabh563
Sourabh Shrivastava
2 years
In this example, the parent component (ParentComponent) passes the data as the message prop to the child component (ChildComponent). The child component then receives and displays the message by accessing props.message. πŸ“. πŸ“Œ Use #ReactDataFlow #PropsInReact for more info! πŸ’‘.
1
0
0
@sourabh563
Sourabh Shrivastava
2 years
🧡 Here's a simple code snippet to demonstrate:
Tweet media one
Tweet media two
1
0
0
@sourabh563
Sourabh Shrivastava
2 years
Parent ➑️ Child Components πŸ§’πŸ»πŸ‘©πŸ»β€πŸ¦±. In React, data flows from the parent component to its child components through props πŸ“¦. Props are like gift boxes containing data that parents pass to their children. Children receive these gifts and display or use them as needed. 🎁.
1
0
0
@sourabh563
Sourabh Shrivastava
2 years
🌟 Understanding Data Flow in React: Parent ➑️ Child Components πŸ§’πŸ»πŸ‘©πŸ»β€πŸ¦±.Ever wondered how data moves within a React application? we'll explore the fascinating journey of data flow from parent to child components, and how information is shared along the way. Let's dive in! πŸŠβ€β™‚οΈπŸ’¨.
1
0
0
@sourabh563
Sourabh Shrivastava
2 years
If you know MERN and searching for internships and jobs , have some great projects in your resume. Checkout this thread to know more about what projects you can work on. .
@TweetsofTejas
Tejas ✌️
2 years
πŸ’‘Projects That Will Get You an Internship ✨. Here is the list of the projects that can help you to get your first internship or projects to put in your resume or portfolio. I personally got an internship by doing some of these projects. 1/n.
0
0
3
@sourabh563
Sourabh Shrivastava
2 years
I hope this thread helps you understand and resolve the "stale useEffect variable" bug. Happy coding! βœ¨πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» .#React #useState #javascript.
0
0
0
@sourabh563
Sourabh Shrivastava
2 years
9/9 πŸ“š Learn More: If you want to explore more about React and its hooks, check out the React documentation:
Tweet card summary image
legacy.reactjs.org
A JavaScript library for building user interfaces
1
0
0
@sourabh563
Sourabh Shrivastava
2 years
8/9 πŸš€ Example Problem: With the updated code, let's revisit the example problem. Now, whenever you click on the document body, the current value of the counter will be logged correctly, reflecting the latest value of the variable.
1
0
0
@sourabh563
Sourabh Shrivastava
2 years
7/9 πŸ”„ Dependency Array: The dependency array [counter] tells React to re-execute the effect whenever the counter variable changes. This ensures that the effect has access to the latest value of the variable.
1
0
0