MAMansoor Ameeninmansoorameen.hashnode.dev·Oct 14, 2025 · 3 min read5 React hooks that you should knowuseId: useId is one of the simplest hooks in react and it is used to generate unique id’s for related elements on both client and server side. It can be passed to accessibility attributes import { useId } from 'react'; function InputField() { c...00
MAMansoor Ameeninmansoorameen.hashnode.dev·Jun 4, 2022 · 2 min readuseRef Hook: ReactuseRef Hook helps to create a direct reference to the DOM element, so we can access it and modify, like the JavaScript document.querySelector method. const refContainer = useRef(initialValue); It returns an object which has a property called .curren...01A
MAMansoor Ameeninmansoorameen.hashnode.dev·Jun 3, 2022 · 3 min readuseEffect Hook: ReactWell, what does this useEffect Hook does? To simply put, it helps us to do something after our component has rendered. React will run this after it has updated the DOM. So useEffect does not block the browser from rendering, but it is run after perfo...00
MAMansoor Ameeninmansoorameen.hashnode.dev·Jul 21, 2021 · 2 min readUnderstanding "Closures" and Lexical EnvironmentWhat is Closure ?? Heard someone saying "this piece of code is possible because of closure" ?! Most probably you encountered this word somewhere in your coding journey.One of the core concepts that every JS developer should know. Well, what is cl...01P
MAMansoor Ameeninmansoorameen.hashnode.dev·Jul 7, 2021 · 3 min readFunction Currying ExplainedWhat is Currying? Ever got this question in an interview? This is one of the important topics that a developer should know. Currying is a technique to transform a function with multiple arguments, into a sequence of nesting functions, breaking dow...03TNC