<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>prop drilling is good - Interview Questions</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/prop-drilling-is-good/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/prop-drilling-is-good/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Wed, 04 May 2022 05:47:10 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.1</generator>
	<item>
		<title>What is Prop Drilling ?</title>
		<link>https://www.wikitechy.com/interview-questions/reactjs/what-is-prop-drilling/</link>
					<comments>https://www.wikitechy.com/interview-questions/reactjs/what-is-prop-drilling/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Mon, 28 Mar 2022 05:39:45 +0000</pubDate>
				<category><![CDATA[ReactJS]]></category>
		<category><![CDATA[Avoid Prop Drilling with React Context]]></category>
		<category><![CDATA[how to avoid prop drilling]]></category>
		<category><![CDATA[how to avoid prop drilling in react]]></category>
		<category><![CDATA[Prop Drilling]]></category>
		<category><![CDATA[prop drilling is good]]></category>
		<category><![CDATA[prop drilling react hooks]]></category>
		<category><![CDATA[prop drilling vs context]]></category>
		<category><![CDATA[react prop drilling example]]></category>
		<category><![CDATA[React Prop-drilling]]></category>
		<category><![CDATA[The upsides of prop drilling in React]]></category>
		<category><![CDATA[what is prop drilling and how can you avoid it]]></category>
		<category><![CDATA[What is prop drilling and how to avoid it ?]]></category>
		<category><![CDATA[what is prop drilling in react]]></category>
		<category><![CDATA[What is React Prop Drilling]]></category>
		<category><![CDATA[what problem does context api solve]]></category>
		<category><![CDATA[why is prop drilling bad]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4009</guid>

					<description><![CDATA[We pass a prop with another component with the help of all the components that come between, this method is known as prop drilling. Prop drilling is basically a situation&#8230;]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4269 aligncenter" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/03/props-drilling.png" alt="" width="923" height="745" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/03/props-drilling.png 923w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/03/props-drilling-300x242.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/03/props-drilling-768x620.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/03/props-drilling-390x315.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/03/props-drilling-820x662.png 820w" sizes="(max-width: 923px) 100vw, 923px" /></p>
<ul>
<li style="text-align: justify;">We pass a prop with another component with the help of all the components that come between, this method is known as prop drilling.</li>
<li style="text-align: justify;">Prop drilling is basically a situation when the same data is being sent at almost every level due to requirements in the final level.</li>
<li style="text-align: justify;">We refer prop drilling to the process of sending props from a higher-level component to a lower-level component.</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4023 aligncenter" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/03/what-is-prop-drilling-in-react-1.png" alt="" width="618" height="380" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/03/what-is-prop-drilling-in-react-1.png 618w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/03/what-is-prop-drilling-in-react-1-300x184.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/03/what-is-prop-drilling-in-react-1-390x240.png 390w" sizes="(max-width: 618px) 100vw, 618px" /></p>
<p>&nbsp;</p>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4270" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/03/react-props.gif" alt="" width="1268" height="647" /></p>
<p><strong>For example,</strong></p>
[pastacode lang=&#8221;markup&#8221; manual=&#8221;%20%20import%20React%2C%20%7B%20useState%20%7D%20from%20%22react%22%3B%0A%20%20%0Afunction%20Parent()%20%7B%0A%20%20const%20%5BfName%2C%20setfName%5D%20%3D%20useState(%22firstName%22)%3B%0A%20%20const%20%5BlName%2C%20setlName%5D%20%3D%20useState(%22LastName%22)%3B%0A%20%20return%20(%0A%20%20%20%20%3C%3E%0A%20%20%20%20%20%20%3Cdiv%3EThis%20is%20a%20Parent%20component%3C%2Fdiv%3E%0A%20%20%20%20%20%20%3Cbr%20%2F%3E%0A%20%20%20%20%20%20%3CChildA%20fName%3D%7BfName%7D%20lName%3D%7BlName%7D%20%2F%3E%0A%20%20%20%20%3C%2F%3E%0A%20%20)%3B%0A%7D%0A%20%20%0Afunction%20ChildA(%7B%20fName%2C%20lName%20%7D)%20%7B%0A%20%20return%20(%0A%20%20%20%20%3C%3E%0A%20%20%20%20%20%20This%20is%20ChildA%20Component.%0A%20%20%20%20%20%20%3Cbr%20%2F%3E%0A%20%20%20%20%20%20%3CChildB%20fName%3D%7BfName%7D%20lName%3D%7BlName%7D%20%2F%3E%0A%20%20%20%20%3C%2F%3E%0A%20%20)%3B%0A%7D%0A%20%20%0Afunction%20ChildB(%7B%20fName%2C%20lName%20%7D)%20%7B%0A%20%20return%20(%0A%20%20%20%20%3C%3E%0A%20%20%20%20%20%20This%20is%20ChildB%20Component.%0A%20%20%20%20%20%20%3Cbr%20%2F%3E%0A%20%20%20%20%20%20%3CChildC%20fName%3D%7BfName%7D%20lName%3D%7BlName%7D%20%2F%3E%0A%20%20%20%20%3C%2F%3E%0A%20%20)%3B%0A%7D%0A%20%20%0Afunction%20ChildC(%7B%20fName%2C%20lName%20%7D)%20%7B%0A%20%20return%20(%0A%20%20%20%20%3C%3E%0A%20%20%20%20%20%20This%20is%20ChildC%20component.%0A%20%20%20%20%20%20%3Cbr%20%2F%3E%0A%20%20%20%20%20%20%3Ch3%3E%20Data%20from%20Parent%20component%20is%20as%20follows%3A%3C%2Fh3%3E%0A%20%20%20%20%20%20%3Ch4%3E%7BfName%7D%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Ch4%3E%7BlName%7D%3C%2Fh4%3E%0A%20%20%20%20%3C%2F%3E%0A%20%20)%3B%0A%7D%0A%20%20%0Aexport%20default%20Parent%3B%0A&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;/]
<p>&nbsp;</p>
<p><strong>Output:</strong></p>
<p><img decoding="async" loading="lazy" class="alignnone wp-image-4025 size-full" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/03/output-for-prop-drilling-1.png" alt="" width="876" height="692" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/03/output-for-prop-drilling-1.png 876w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/03/output-for-prop-drilling-1-300x237.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/03/output-for-prop-drilling-1-768x607.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/03/output-for-prop-drilling-1-390x308.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/03/output-for-prop-drilling-1-820x648.png 820w" sizes="(max-width: 876px) 100vw, 876px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/reactjs/what-is-prop-drilling/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
