<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ayushi Verma</title>
    <description>The latest articles on DEV Community by Ayushi Verma (@ayushi_verma).</description>
    <link>https://dev.to/ayushi_verma</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F543506%2F013e3eb4-8a65-413e-9017-4b8c0ca36d16.jpeg</url>
      <title>DEV Community: Ayushi Verma</title>
      <link>https://dev.to/ayushi_verma</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ayushi_verma"/>
    <language>en</language>
    <item>
      <title>Let's Hook Into React Hooks</title>
      <dc:creator>Ayushi Verma</dc:creator>
      <pubDate>Tue, 10 May 2022 15:39:57 +0000</pubDate>
      <link>https://dev.to/ayushi_verma/react-hooks-4n61</link>
      <guid>https://dev.to/ayushi_verma/react-hooks-4n61</guid>
      <description>&lt;p&gt;We all are using react hook, but did we know, Why we need them? Why hooks came in picture?, and its okay if you are not aware about hooks, we will cover basic understanding of hooks.&lt;/p&gt;

&lt;p&gt;So, Lets have a look around it.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Why Hooks?&lt;/li&gt;
&lt;li&gt;Type of Hooks?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Hooks are a new addition in React 16.8. They let you use state and other React features without writing a class.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Hooks?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Originally, React relied heavily on class components, which made switching between classes, higher-order components, and render props a pain. You can now do all of this without switching, using functional components and react hooks. &lt;/li&gt;
&lt;li&gt;Hooks improve React by allowing you to write simpler code that accomplishes identical functionality more quickly and effectively. &lt;/li&gt;
&lt;li&gt; Hooks let you use more of React’s features without classes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Before digging into its implementation, keep the following qualities in mind:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tfiQ28ke--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sh3vci71ill8mfu0594k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tfiQ28ke--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sh3vci71ill8mfu0594k.png" alt="Image description" width="394" height="188"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The initial render creates its initial state.&lt;/li&gt;
&lt;li&gt;Its status can be changed at any time.&lt;/li&gt;
&lt;li&gt;In future renderings, React would remember the state of the hook.&lt;/li&gt;
&lt;li&gt;Based on the calling sequence, React would supply you with the appropriate state.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Some rules&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--NlSSOajV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xdshfujrrasxnigm8ntd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--NlSSOajV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xdshfujrrasxnigm8ntd.png" alt="Image description" width="393" height="178"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Only call Hooks at the top level. Don’t call Hooks inside loops, conditions, or nested functions.&lt;/li&gt;
&lt;li&gt;Only call Hooks from React function components. Don’t call Hooks from regular JavaScript functions.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Let's talk about it's type&lt;/strong&gt;
&lt;/h2&gt;

&lt;h2&gt;
  
  
  State Hook
&lt;/h2&gt;

&lt;p&gt;The useState hook is the first one we'll look at. Long before, you couldn't use the local state in a functional component. But with useState you can change local state.&lt;/p&gt;

&lt;p&gt;How fascinating, itsn't it?&lt;/p&gt;

&lt;p&gt;Consider the following example of a counter:&lt;br&gt;
 &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--sA0Kw4Lo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://miro.medium.com/max/815/1%2A2909ks8DqBVC23n2Ykqe0Q.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--sA0Kw4Lo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://miro.medium.com/max/815/1%2A2909ks8DqBVC23n2Ykqe0Q.gif" alt="Image description" width="652" height="326"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---U9HMpbW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rkidjt1d6ojs411ty8fk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---U9HMpbW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rkidjt1d6ojs411ty8fk.png" alt="Image description" width="639" height="361"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Understanding useSate:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The first two parameter in array are as follow:
the first value &lt;code&gt;count&lt;/code&gt; is the "state variable", you can call it anything instead of count, like aloo-kachaloo, it doesn't matter but its prefered to name according to it's work. Normally, variables “disappear” when the function exits but state variables are preserved by React.&lt;/li&gt;
&lt;li&gt;The second is the function which actually is a state updating function &lt;code&gt;setCount&lt;/code&gt;, which helps us to update the value of our state variable.&lt;/li&gt;
&lt;li&gt;We pass the initial state in &lt;code&gt;useState()&lt;/code&gt; argument. And unlike with classes, the state doesn’t have to be an object. We can keep a number or a string. &lt;/li&gt;
&lt;li&gt;UseState returns a pair of values: the current state and a function that updates it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Effect Hook
&lt;/h2&gt;

&lt;p&gt;UseEffect, the Effect Hook lets you perform side effects in function components. And If you’re familiar with React class lifecycle methods, you can think of useEffect Hook as componentDidMount, componentDidUpdate, and componentWillUnmount combined.&lt;/p&gt;

&lt;p&gt;Typical application cases for useEffect hooks are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;data fetching and consuming data from a server API,&lt;/li&gt;
&lt;li&gt;handling subscriptions with event listeners&lt;/li&gt;
&lt;li&gt;dealing with manual DOM changes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The callback function we pass to the useEffect hook runs the side effects. React runs it on every render of a component by default. However, side effects can be expensive and performance-intensive to run on every render. We can control it using the dependency array argument we pass to the useEffect hook.&lt;/p&gt;

&lt;p&gt;Here is how you can see some examples:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Side Effect Runs After Every Render&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--v19Apy8q--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jrz68f1z1vvmcdr2mhh2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--v19Apy8q--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jrz68f1z1vvmcdr2mhh2.png" alt="Image description" width="374" height="70"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Side Effect Runs Only Once After Initial Render&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--zFLkmaq2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wyoybn4gbi54cwcqbl7e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--zFLkmaq2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wyoybn4gbi54cwcqbl7e.png" alt="Image description" width="383" height="74"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Side Effect Runs After State Value Changes&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--RKPz9R5S--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/56buvt5v83uegvs3n7dx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--RKPz9R5S--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/56buvt5v83uegvs3n7dx.png" alt="Image description" width="355" height="86"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Other React hooks include:&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;useContext():&lt;/strong&gt; This hook helps to build a context API, which itself is a mechanism used to share data without passing props. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;useRef():&lt;/strong&gt; This hook allows you to reference the DOM in the functional component directly.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Note: useRef() doesn’t trigger a re-render like setState() does.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;useReducer():&lt;/strong&gt; This stores the current state value. You can liken it to Redux.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;useMemo():&lt;/strong&gt; This is a hook used to return a memoized value, i.e. when you need your function to return a cached value.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;useCallback:&lt;/strong&gt; This hook is used when you have a component’s child continuously re-rendering. It will then return a memoized version of the callback that only changes when one of the dependencies changes.&lt;/p&gt;




&lt;p&gt;I guess that's pretty much to get started with hooks, yet there is a lot to explore refer &lt;a href="https://reactjs.org/docs/hooks-intro.html"&gt;this&lt;/a&gt; for more deep learning.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Thank you, happy coding:)&lt;/strong&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>APIDESK</title>
      <dc:creator>Ayushi Verma</dc:creator>
      <pubDate>Sun, 08 May 2022 16:58:54 +0000</pubDate>
      <link>https://dev.to/ayushi_verma/apidesk-4gef</link>
      <guid>https://dev.to/ayushi_verma/apidesk-4gef</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;&lt;em&gt;ApiDesk&lt;/em&gt;&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;v-1.0.3&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;About&lt;/strong&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;ApiDesk is a chrome extension that makes api testing easier. You don't have to create long api call methods like fetch and axios, and you don't have to specify headers or data in it using code, to test.&lt;/li&gt;
&lt;li&gt;ApiDesk has a simple and user friendly user interface.&lt;/li&gt;
&lt;li&gt;ApiDesk makes searching for errors in stackoverflow simple and quick with just two clicks.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;How to Use&lt;/strong&gt;
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Apis
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Methos: GET&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;By default we have set the GET method &lt;/li&gt;
&lt;li&gt;&lt;p&gt;Put the Api Url&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--AvcBf86J--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rl6cscvsb36024up20hn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AvcBf86J--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rl6cscvsb36024up20hn.png" alt="Image description" width="552" height="64"&gt;&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You can edit the header if required, with the header key&lt;code&gt;(Accept)&lt;/code&gt; and header value&lt;code&gt;(*/*)&lt;/code&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ybMMvZFI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m02whqbib7a7xxzmj1oc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ybMMvZFI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m02whqbib7a7xxzmj1oc.png" alt="Image description" width="537" height="54"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Submit the request&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Response:&lt;/strong&gt;&lt;br&gt;
Response Body will show header and Data&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xpNRPP1M--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fieg7axpgvjtebir10rt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xpNRPP1M--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fieg7axpgvjtebir10rt.png" alt="Image description" width="533" height="204"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Methos: POST&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Select the POST method&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Put the Api Url&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--BRvA9-aH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/exo947etd65gjd3xbm9s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--BRvA9-aH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/exo947etd65gjd3xbm9s.png" alt="Image description" width="537" height="53"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You can edit the header if required, with the header key&lt;code&gt;(Accept)&lt;/code&gt; and header value&lt;code&gt;(*/*)&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Add the data in JSON format. Exmple: &lt;code&gt;{"key":"value"}&lt;/code&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--1EcmbBD---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7kthtt1dxro0chsny016.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--1EcmbBD---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7kthtt1dxro0chsny016.png" alt="Image description" width="542" height="180"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Submit the request&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Response:&lt;/strong&gt;&lt;br&gt;
Response Body will show header and Data&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--oFzHI93Y--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7y617vq7iwccs6x5q6yk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oFzHI93Y--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7y617vq7iwccs6x5q6yk.png" alt="Image description" width="523" height="207"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Methos: DELETE&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Select the DELETE method&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Put the Api Url&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--t-NEarrA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vd2icuaotjuztmfqmke7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--t-NEarrA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vd2icuaotjuztmfqmke7.png" alt="Image description" width="535" height="68"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You can edit the header if required, with the header key&lt;code&gt;(Accept)&lt;/code&gt; and header value&lt;code&gt;(*/*)&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Submit the request&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Response:&lt;/strong&gt;&lt;br&gt;
Response Body will show header and Data&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Co_xt5g7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ttiah8t3uzsd117cdp9o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Co_xt5g7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ttiah8t3uzsd117cdp9o.png" alt="Image description" width="513" height="172"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  Stackoverflow
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;What if we told you that you could search for your issue in only two clicks? You wouldn't have to open a new tab to do so, we've got you covered. We've integrated stackoverflow error search as well.&lt;/li&gt;
&lt;li&gt;Enter your error in the StackOverflow tab and hit search; you will be sent to the stackoverflow page.&lt;/li&gt;
&lt;li&gt;Real time update with cool UI&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4BhVLeC1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aj3qg4s8l8npm01lc23x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4BhVLeC1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aj3qg4s8l8npm01lc23x.png" alt="Image description" width="538" height="477"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  VScode Shortcut Suggestions
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Get ProTips of VScode Shortcut every second.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Qg1RHryg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qyssoemiz4pr07j7t4jq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Qg1RHryg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qyssoemiz4pr07j7t4jq.png" alt="Image description" width="529" height="68"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Contributer:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Ayushi Verma &lt;a href="https://github.com/Ayushi20-19/"&gt;Github&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Nishant Kumar Tiwari &lt;a href="https://github.com/Asuraking1n"&gt;Github&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  &lt;a href="https://github.com/Ayushi20-19/apidesk"&gt;Github Link:&lt;/a&gt;
&lt;/h4&gt;

&lt;p&gt;Give a Star if you find ApiDesk useful :)&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: ApiDesk is available in chrome web store,  &lt;a href="https://chrome.google.com/webstore/detail/apidesk/ncmebhclacffkcmjopgapnefmfpnhnpe"&gt;Add to your chrome&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>extension</category>
      <category>api</category>
      <category>stackoverflow</category>
      <category>react</category>
    </item>
    <item>
      <title>Temporal dead zone(TDZ)</title>
      <dc:creator>Ayushi Verma</dc:creator>
      <pubDate>Mon, 10 Jan 2022 09:46:06 +0000</pubDate>
      <link>https://dev.to/ayushi_verma/temporal-dead-zonetdz-2pej</link>
      <guid>https://dev.to/ayushi_verma/temporal-dead-zonetdz-2pej</guid>
      <description>&lt;p&gt;Let's discuss the temporal dead zone in depth!&lt;/p&gt;

&lt;h4&gt;
  
  
  We Know Let and Const declarations are known to be hoisted.
&lt;/h4&gt;

&lt;p&gt;And, if we talk about hoisting, it's the default behavior of moving all declarations to the top of the scope before code execution, which means we can access variables before they're initialized because in js memory is allocated to each variable even before a single line of code is executed.&lt;/p&gt;

&lt;p&gt;Let take an example and try to understand this&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--r6K5pMf---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/peyv5jxusn9qn4v141l1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--r6K5pMf---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/peyv5jxusn9qn4v141l1.png" alt="Image description" width="737" height="106"&gt;&lt;/a&gt;&lt;br&gt;
here you can see the varVariable is called before it is being initialized and we did not even get the error, this is because the var is Global scope, varVariable got some memory in the Global scope but the value is not initialized hence giving undefined.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ZwMGXFsl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wjk3njbrbks6s62kvxfi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ZwMGXFsl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wjk3njbrbks6s62kvxfi.png" alt="Image description" width="735" height="109"&gt;&lt;/a&gt;&lt;br&gt;
But wait ! Why are we getting an error here? If you say that I told you that memory is allocated to every variable even before a single line of code is executed, but we still get a reference error. Then hold on, memory is allocated to letVariable, but in a different memory space, which is not global as let being block scope, and we are unable to inspect these let and const before assigning them a value.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9BhItIV6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tvm1n36731u2dgv8wxai.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9BhItIV6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tvm1n36731u2dgv8wxai.png" alt="Image description" width="729" height="106"&gt;&lt;/a&gt;&lt;br&gt;
Here's where the Temporal Dead Zone comes in. We're getting the value of letVariable now, and we can see what TDZ is- It is the time between since when the let/const variable was hoisted and till it is initialized some value.&lt;/p&gt;

&lt;p&gt;In other words,&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The time window in which a variable exists but is still uninitialized and thus cannot be accessed in any way is known as the TDZ. That initialization can only be achieved by implementing the instructions left by the Compiler at the time of the original declaration. The TDZ is now complete, and the variable can be used for the remainder of the scope.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;A var also has a TDZ, but it's zero in length and therefore invisible to our programs, Only let and const have a TDZ that can be observed.&lt;/em&gt;&lt;/p&gt;

&lt;h5&gt;
  
  
  And Why TDZ happen?
&lt;/h5&gt;

&lt;p&gt;Let/const declarations are hoisted too but like var they are not auto-initialized until they are initialized in the code sequence, hence resulting in TDZ. &lt;/p&gt;

&lt;p&gt;Hope you like it, comment the feedbacks:)&lt;br&gt;
Happy Coding&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
