<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Karn on Medium]]></title>
        <description><![CDATA[Stories by Karn on Medium]]></description>
        <link>https://medium.com/@karntech?source=rss-bcef2a0bd266------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*uBVnEViTK2i_TZqcgB_U_g.png</url>
            <title>Stories by Karn on Medium</title>
            <link>https://medium.com/@karntech?source=rss-bcef2a0bd266------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 22:01:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@karntech/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[My Experience as a Self-Taught Programmer — Lessons Learned]]></title>
            <link>https://javascript.plainenglish.io/my-experience-as-a-self-taught-programmer-lessons-learned-1652481bfa5b?source=rss-bcef2a0bd266------2</link>
            <guid isPermaLink="false">https://medium.com/p/1652481bfa5b</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Karn]]></dc:creator>
            <pubDate>Sun, 17 Jan 2021 00:24:40 GMT</pubDate>
            <atom:updated>2021-03-12T15:08:41.110Z</atom:updated>
            <content:encoded><![CDATA[<h3>My Experience as a Self-Taught Programmer — Lessons Learned</h3><p>Learning a new skill can be a daunting task but it is critical for our career and intellectual growth. Programming is one of those highly rewarding skills that I believe everyone should learn. 3 Months ago I started learning how to code on my own. Little did I know how uncertain the path to being a self-taught programmer is. There is no straight line or easy way.</p><p>Programming can be hard especially if you come from Non-Tech background. The concepts can be difficult to grasp and the quit rate is high. I have met many Bootcamp/CS graduates who never ended up finding a job or succeeding as programmer. Being a self-taught is even tougher since it requires high discipline and self-motivation to keep learning everyday. You won’t get the support and mentorship that a Bootcamp Student has available.</p><h3>About Me</h3><p>I don’t have a degree in Computer Science or Software Engineering. I studied Electrical Engineering and only learned the very basics of C++ in University. After finishing University, I worked as an Operations Manager in the Biggest E-commerce company in the world. I did well in my Job. I was promoted thrice in three years. I was Managing a team of 100 Associates and 2–3 Assistant Managers during Peak hours. I learned a lot about Management and Leadership skills at this job. It seemed like my career was set. I could just keep working and climbing the leadership ladder.</p><p>In my 3rd year at this job, I decided it is time I pick up a new skill. I decided to learn Web Development since anything I wanted to build required some kind of Web Development knowledge. The decision was quick and easy.</p><h3>Key Lessons</h3><p>In this article, I am going to discuss the three key lessons I learned in my journey so far. These are lessons I wish I knew when I started learning how to code. I hope these lessons will help you in your journey of being a better programmer.</p><h3>1. Know the Plan, Nail the Plan</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*hIyjQcMiBX5PFmQmGRq-3w.png" /></figure><p>Before diving into the world of coding it is important to know what exactly you want to learn. There are a 100s of technologies out there. There are many career paths ranging from Front-End, Back-End, Distributed Computing, Data Science etc. Researching these career paths was very overwhelming and exhausting for me. One YouTube Guru recommends Python but the other says JavaScript is where it’s at. Which one should I listen to? Within a few hours I found myself in a tutorial hell, not sure where to start. Many beginner self-taught programmers will find themselves in the same situation.</p><p>The best solution to escape the tutorial hell is to pick a learning track, stick with it and don’t bounce around. If you find it difficult to pick a learning track, speak with a Mentor or look into your strengths. For example, if you have some prior experience with HTML and CSS from that College course that you barely passed, then Web Development is the natural choice. Or If you have strong data mining skills, then Data Science with Python could be a great track for you. The key here is to pick a track and stick with it for at least 6 months.</p><h3>2. Learn the Fundamentals — HTML, CSS and JavaScript</h3><p>The building is only as tall as the foundation is strong enough to build on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*7KnZBuKHWilJwDJ2dwYUOg.png" /></figure><p>In April 2020, I was on a Vacation for 2 weeks. I decided to use this time to learn programming. When I started learning programming, the very first technology I tried to learn was React and this was my <strong>biggest</strong> mistake. Not because React is a bad Technology to learn, in-fact it is the most popular web Framework in 2021 and one of the easiest to learn. But because I never learned the fundamental technologies that React is built upon — HTML, CSS, JavaScript. Not knowing the fundamentals can making learning programming harder than it actually is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*F76e8irhYgsHc_bK.jpg" /></figure><p>After spending 2 days trying to read and understand React.js Documentation, I wasn’t making much progress. Then I decided to watch some tutorials on YouTube. Maybe the YouTube Coding Gurus can explain it better. It still didn’t make sense. At this point I started to consider quitting. It is too hard for me I thought. And after 1 week of struggling with React, I actually Quit.</p><p>Before learning a complicated Web Technology like React, Angular or Node.js, it is important to be fluent in HTML, CSS and JavaScript. Most Coding Bootcamps spend first 4 weeks teaching HTML, CSS and JavaScript before introducing any Frameworks. Before starting a course on any advanced Web Technology, it is crucial to learn the pre-requisites. It will make life much easier and speed-up your learning curve.</p><h3>3. Get a Mentor</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*mEF1NXdlsP3r-mU8JL42-g.png" /></figure><p>One of the major challenges while learning how to code is not knowing if you are learning the right things or if you are making enough progress in your journey to being a programmer. Lucky for me I had friends who were established developers and provided valuable feedback when I approached them for mentorship.</p><p>My Company has one of the biggest Tech Departments in the world and some of the best programmers. I reached out to some of the them for mentorship and they were happy to help. I quickly set up Bi-weekly calls with my mentors to review my progress. Having a mentor kept me motivated by setting realistic and achievable goals.</p><p>A Mentor can help you figure out a career path, introduce you to the culture in software industry, prepare you for job interviews etc. There are many resources out there to find a mentor. I would suggest approaching your friends or family who are coders. Reddit, Meetups, Codementor.io are come of the common online mentorship platforms. Having a strong mentor will save you months in your path to being a self-taught programmer.</p><h3>Resources</h3><p>Below is the list of my favorite resources for beginners who are looking to learn Web Development.</p><ol><li><a href="https://developer.mozilla.org/en-US/">MDN Web Docs</a></li><li><a href="https://stackademic.com/">Stackademic</a></li><li><a href="https://javascript.info/">JavaScript.info</a></li><li><a href="https://www.freecodecamp.org/">FreeCodeCamp</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1652481bfa5b" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/my-experience-as-a-self-taught-programmer-lessons-learned-1652481bfa5b">My Experience as a Self-Taught Programmer — Lessons Learned</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Manage React State with useReducer() and Context API]]></title>
            <link>https://javascript.plainenglish.io/how-to-manage-state-with-usereducer-and-context-api-3f0ea40a3ac3?source=rss-bcef2a0bd266------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f0ea40a3ac3</guid>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[state-management]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Karn]]></dc:creator>
            <pubDate>Fri, 06 Nov 2020 14:41:27 GMT</pubDate>
            <atom:updated>2020-11-07T18:41:52.836Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*zrVLaj8wsakfcqMGWdvCwQ.png" /></figure><p>React is the most popular framework in 2020 for Front-end development. The reason behind React’s success is short learning curve and how fast it can get your App up and running. But there is one concept in React that most developers struggle to wrap their head around aka State Management.</p><p>Libraries like Redux, MobX are built around React to handle the state but they can be intimidating to learn for a new and upcoming developer. In this article I am going to explain how you can manage a state using React’s inbuilt Context API and Hooks. Once you master the concepts of State Management using React’s inbuilt features, it will save you a lot of pain when you learn Redux.</p><h3>What is State Management?</h3><p>Beginning from React 16.8, every React component, both class and functional ones, can have a state. To put it simply, State is a JavaScript object that represents the components Memory. It can be changed anytime as a result of users actions or events. State can be passed down the component tree in a process called props drilling.</p><p>As the app gets bigger it becomes more and more difficult to manage state and props drilling makes it harder to keep track of all dependencies. A better solution is to simply separate the state from the app using Context API and then share it where it is needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*C_pRaGwyTZ-sjBzEXLVifQ.png" /><figcaption>State Management using Context API</figcaption></figure><h3>What is Context API?</h3><p>I explained the Context API with an example in my article here:<a href="https://karntech.medium.com/how-to-use-context-api-in-react-673260df24d7"><strong> How to use Context API in React</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*EjDSOqhNOqIJ9wOqqFwKJQ.png" /></figure><p>Context API is designed to share state across the entire React component tree. Using Context API you can share a state to the entire “App” component tree without having to pass it as props at each level. You can then manipulate the state in the “User Info” component directly without having to pass it through the intermediate “Users” component.</p><h3>What is useReducer() hook?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/1*x_jFSqEpOnKw1Z7VgSzS_w.png" /></figure><p>A useReducer() hook accepts a reducer and initial state and outputs current state with a dispatch method. The current state is the updated state. That’s basically it!!</p><h3>What is a Reducer?</h3><p>Reducer is a function that takes 2 parameters, which are action and initialstate(payload) and outputs the new state(current state) based on the action performed. You can access your reducer using the useReducer() hook.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*4vIstQBnChwa486Fwn2v8Q.png" /></figure><h3>Implementation</h3><p>Now that we have a basic understanding of what a Reducer, useReducer() and Context API is, lets built a simple Application to solidify the concepts. In this application, we will create a simple counter and we will store the value of the counter using Context API. What’s important here is to understand the concepts behind state management even if you don&#39;t understand every line of code.</p><p>Let’s being our build with npx <strong>create-react-app</strong>.</p><pre><strong>npx create-react-app counterapp</strong></pre><h4>Step 1: Build the DataLayer.js</h4><p>DataLayer.js it where we are going to create our Context and then export it out to be used by other Components in the App.js tree. Firstly, we will create a context called DataLayerContext. This context stores our state. We can import it into child components to use and manipulate the state later.</p><pre>const DataLayerContext = React.createContext();</pre><p>Next will create a function DataLayer that takes initialstate, reducer and children as parameter. DataLayerContext.Provider is just a wrapper that shares the state with all the child components. Most likely, this piece of code wont make sense to you right now. But don’t get discouraged because once you start identifying the patterns, State Management will become super simple. For now, just copy and paste this code into your project.</p><pre>export const DataLayer = ({ initialstate, reducer, children }) =&gt; (</pre><pre>&lt;DataLayerContext.Provider value={useReducer(reducer, initialstate)}&gt;</pre><pre>{children}</pre><pre>&lt;/DataLayerContext.Provider&gt;</pre><pre>);</pre><p>Now that our Context is created, it is time to export so other components can use it.</p><pre>export const useDataLayerValue = () =&gt; useContext(DataLayerContext);</pre><h4>Step 2: Initialstate and Reducer — Reducer.js</h4><p>To manage a state, first we need to create one. We will call our state initialstate. It will have one property “data” whose value is set to 0.</p><pre>export const initialState = {</pre><pre>data: 0</pre><pre>};</pre><p>Next we create our Reducer. As mentioned above, Reducer is just a function that takes 2 parameters, which are action and initialstate(payload) and outputs the new state(current state) based on the action performed.</p><p>In case of our reducer, if the action is “INSC”, the reducer will update our state and increment the value of data property by 1. If the action is “DESC”, it will decrement the value of data property by 1. Pretty straight forward!!!</p><pre>export const reducer = (state, action) =&gt; {</pre><pre>switch (action.type) {</pre><pre>case &quot;INSC&quot;:</pre><pre>return { ...state, data: state.data - 1 };</pre><pre>case &quot;DESC&quot;:</pre><pre>return { ...state, data: state.data + 1 };</pre><pre>default:</pre><pre>return state;</pre><pre>}</pre><pre>};</pre><h4>Step 3: Wrap the App component with DataLayer.</h4><p>With the reducer, DataLayer and initialstate ready, it is time to pass the state to the App component tree. We do that by wrapping the App component with DataLayer in the index.js file. Now every component in the App.js component tree will have access to the state. BOOM!!!!</p><pre>import React from &quot;react&quot;;</pre><pre>import ReactDOM from &quot;react-dom&quot;;</pre><pre>import { DataLayer } from &quot;./Datalayer&quot;;</pre><pre>import App from &quot;./App&quot;;</pre><pre>import { initialState } from &quot;./Reducer&quot;;</pre><pre>import { reducer } from &quot;./Reducer&quot;;</pre><pre>const rootElement = document.getElementById(&quot;root&quot;);</pre><pre>ReactDOM.render(</pre><pre>&lt;React.StrictMode&gt;</pre><pre>&lt;DataLayer initialstate={initialState} reducer={reducer}&gt;</pre><pre>&lt;App /&gt;</pre><pre>&lt;/DataLayer&gt;</pre><pre>&lt;/React.StrictMode&gt;,</pre><pre>rootElement</pre><pre>);</pre><h4>Step 4: Access and modify the state in App.js component</h4><pre>App.js component</pre><pre>import { useDataLayerValue } from &quot;./Datalayer&quot;;</pre><p>We can access the state property “data” using the useDataLayerValue().</p><pre>const [{ data }, dispatch] = useDataLayerValue();</pre><p>Finally, we will modify the value of the state using 2 buttons. Button “+1” fires a dispatch with action type “INSC” — increment the value of data by 1 and update state. Button “-1” fires a dispatch with action type “DESC” — decrement the value of data by 1 and update the state.</p><pre>&lt;button onClick={() =&gt; dispatch({ type: &quot;INSC&quot; })}&gt;-1&lt;/button&gt;</pre><pre>&lt;button onClick={() =&gt; dispatch({ type: &quot;DESC&quot; })}&gt;+1&lt;/button&gt;</pre><p>Our counter app is now complete. I hope my simple State Management tutorial helped you understand one of the most core concepts of React and Web Development. The entire code can be found in the Sandbox <a href="https://codesandbox.io/s/context-api-example-t7eux?file=/src/App.js:228-359"><strong>here</strong></a>.</p><p>Like to App: <a href="https://csb-t7eux-qq7eque4t.vercel.app/">csb-t7eux-qq7eque4t.vercel.app</a></p><h4>Happy Coding!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f0ea40a3ac3" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/how-to-manage-state-with-usereducer-and-context-api-3f0ea40a3ac3">How to Manage React State with useReducer() and Context API</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Maps in React Applications Using Leaflet.js]]></title>
            <link>https://karntech.medium.com/building-maps-in-react-applications-using-leaflet-js-d6e4de1a3cb1?source=rss-bcef2a0bd266------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6e4de1a3cb1</guid>
            <category><![CDATA[maps]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[leaflet]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Karn]]></dc:creator>
            <pubDate>Thu, 29 Oct 2020 19:46:28 GMT</pubDate>
            <atom:updated>2020-10-29T19:46:28.824Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building Maps in React Applications Using Leaflet</h3><p>Building interactive Maps is a great way to show useful information about countries, locations etc. Surely many of us have seen the use of such maps in the various Covid trackers available online. <a href="https://news.google.com/covid19/map?hl=en-CA&amp;gl=CA&amp;ceid=CA%3Aen&amp;mid=%2Fm%2F015fr">Google’s Covid Tracker </a>is an excellent example of one of the Applications of these maps.</p><figure><img alt="Google’s Covid Tracker" src="https://cdn-images-1.medium.com/max/1024/1*aWkqL775QGll9KxnXvibuA.png" /><figcaption>Google’s Covid Tracker</figcaption></figure><p>This week I found myself wanting to build a Covid Tracker of my own. There are 100s of Map libraries available for JavaScript developers to play with. Mapbox, Google Maps,<strong> </strong>OpenLayers, D3 to name a few<strong>. </strong>I decided to go with Leaflet.js since I had some prior experience using it and was able to pick it up quickly.</p><h3>What is Leaflet.js?</h3><p>The Developers of Leaflet describe it as:</p><blockquote>The leading open-source JavaScript library for mobile-friendly interactive maps. Weighing just about 39 KB of JS, it has all the mapping <a href="https://leafletjs.com/#features">features</a> most developers ever need. Leaflet is designed with <em>simplicity</em>, <em>performance</em> and <em>usability</em> in mind. It works efficiently across all major desktop and mobile platforms, can be extended with lots of <a href="https://leafletjs.com/plugins.html">plugins</a>, has a beautiful, easy to use and <a href="https://leafletjs.com/reference.html">well-documented API</a> and a simple, readable <a href="https://github.com/Leaflet/Leaflet">source code</a> that is a joy to <a href="https://github.com/Leaflet/Leaflet/blob/master/CONTRIBUTING.md">contribute</a> to.</blockquote><p>Well, I think the Leaflet is good at what it does, although the documentation on <a href="https://leafletjs.com/">Leafletjs.com</a> can definitely be better.</p><h3><strong>How to Use Leaflet with React?</strong></h3><p><strong>Step 1: Install React-leaflet into your project.</strong></p><pre>npm install react-leaflet</pre><p><strong>Step 2: Import Leaflet properties into your Component</strong></p><pre>import { Map, TileLayer } from &quot;react-leaflet&quot;;<br>import &quot;leaflet/dist/leaflet.css&quot;;</pre><p><strong>Step 3: Displaying the Map</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1b897727827450b3d0c19a5f4692f817/href">https://medium.com/media/1b897727827450b3d0c19a5f4692f817/href</a></iframe><p>And its pretty much done. Now your Map component is ready to be exported and rendered in App.js.</p><p>Checkout out my <a href="https://codesandbox.io/s/covid-tracker-react-fq720">Covid Tracker App</a> on CodeSandbox.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UaUICGJIbgBClAIO4lvyRg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6e4de1a3cb1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use Context API in React]]></title>
            <link>https://karntech.medium.com/how-to-use-context-api-in-react-673260df24d7?source=rss-bcef2a0bd266------2</link>
            <guid isPermaLink="false">https://medium.com/p/673260df24d7</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[reactjs]]></category>
            <dc:creator><![CDATA[Karn]]></dc:creator>
            <pubDate>Thu, 22 Oct 2020 02:32:24 GMT</pubDate>
            <atom:updated>2020-10-23T07:54:03.848Z</atom:updated>
            <content:encoded><![CDATA[<p>React released the Context API in <strong>version 16.3.0. </strong>The whole point behind introducing Context API in React is to avoid props drilling to child component. In this article I will try to explain Context API using a very simple example. If you are very new to React, and still trying to understand how props are passed between components, then this article might be too advanced for you.</p><h3><strong>What Problem are we solving?</strong></h3><p>When building React application, often we end up in a situation where we have multiple nested components. If a prop has to be passed from a parent component to the last of the child component it has to be passed through each component on the way even thought it might be used in-between.</p><p>In the flow Diagram below App is a top level component and User info is a grandchild component. Context API will let you pass props directly from App component to User Info Component without going through the Users Component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*YHoRhY7rQGbW1hzOJHgFFg.png" /></figure><h3><strong>How does Context API work?</strong></h3><p>Context API works by declaring a global state that can be pulled into any component. Lets see it in action.</p><p>Create a context using React.createContext().</p><pre>const ThemeContext = React.createContext();</pre><p>Next Step is to create a provider class that will pass your value or state. Notice we’re using our ThemeContext.Provider tag to show this is the component that provides context. Now that context can be used by the consumer class.</p><pre>const Blog = () =&gt; (<br>  &lt;ThemeContext.Provider value=&quot;#31B7DA&quot;&gt;<br>    &lt;Post /&gt;<br>  &lt;/ThemeContext.Provider&gt;<br>);</pre><p>Now were are going to import the context in the Content class and use it to do something. Notice we are using ThemeContext.Consumer to import the context into the class.</p><pre>const Content = () =&gt; (<br>    &lt;ThemeContext.Consumer&gt;<br>      { primaryColor =&gt; &lt;h1 style={{color: primaryColor}}&gt;Headline&lt;/h1&gt; }<strong><br></strong>    &lt;/ThemeContext.Consumer&gt;<br>);</pre><p>Here is a CodePen that puts it all together beautifully.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fgk-singh%2Fembed%2Fpreview%2FgOMLmRP%3Fheight%3D600%26slug-hash%3DgOMLmRP%26default-tabs%3Djs%2Cresult%26host%3Dhttps%3A%2F%2Fcodepen.io&amp;display_name=CodePen&amp;url=https%3A%2F%2Fcodepen.io%2Fgk-singh%2Fpen%2FgOMLmRP&amp;image=https%3A%2F%2Fassets.codepen.io%2F5136718%2Finternal%2Fscreenshots%2Fpens%2FgOMLmRP.default.png%3Ffit%3Dcover%26amp%3Bformat%3Dauto%26amp%3Bha%3Dfalse%26amp%3Bheight%3D360%26amp%3Bquality%3D75%26amp%3Bv%3D2%26amp%3Bversion%3D1603333210%26amp%3Bwidth%3D640&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/1fb83c208daf8e0e2591dfda06deafb2/href">https://medium.com/media/1fb83c208daf8e0e2591dfda06deafb2/href</a></iframe><h3>Conclusion</h3><p>Context API is an excellent way to avoid having nested props drilling allowing us to pass props directly from top component to the bottom component. I am still learning to use Context API is my React best practices to get rid of heavily nested props. Context API can also be used with Hooks to make them even more powerful. In the future I will do a tutorial on Context API + Hooks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=673260df24d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>