What exactly is the `useRef` hook in React?A hook is a function that enables you to use state and other React features inside functional components. useRef is a type of React hook which accepts a single argument and returns an object. Unlike useState, useRef does not trigger rerender. import ...May 12, 2022 · 4 min readkartik-choudhary.hashnode.dev
A beginner's guide to Functional Programming in JavascriptFunctional programming is a programming paradigm where you write code in a declarative approach using pure functions. Functional programming avoids mutating data and side effects. Let's cover some of the important concepts about functional programmin...May 11, 2022 · 7 min readkartik-choudhary.hashnode.dev
Pure Functions in JavascriptIf you are a Javascript developer, chances are you have come across the term "Pure Functions". So, what exactly is a pure function? Pure functions are the foundation of functional programming. For a function to be pure it must follow the rules belo...1Mar 10, 2022 · 4 min readkartik-choudhary.hashnode.dev
What is 'useState' in React?useState is a hook in React. Hooks were introduced in React so that you can use state and lifecycle methods in functional components. Let's say you want a simple like counter app. import React from 'react'; const App = () => { let counter = 0; ...2JVSep 23, 2021 · 3 min readkartik-choudhary.hashnode.dev