Geek Culture

A new tech publication by Start it up (https://medium.com/swlh).

Props Drilling v/s Context API Which One Is the Best

Harsh Makadia
Geek Culture
Published in
4 min readJan 27, 2021

--

Prop drilling vs Context API, How the data is passed

What is Props?

What is Prop drilling?

When can prop drilling cause a problem?

<Profile user="Harsh">
<Profile user={"name": "Harsh", "status": "Expired"}

React Context

Context has 3 main blocks:

Context Object

Context Provider

Context Consumer

When can context API cause a problem?

--

--

Harsh Makadia
Harsh Makadia

Written by Harsh Makadia

I talk about JavaScript, Web Development, No-code to help you stay ultra-modern. See you on Twitter — https://twitter.com/MakadiaHarsh

Responses (6)