Author Archives: Nikhil Chugh

Introduction to useReducer in React Hooks

React Hooks are newly introduced in React version 16.8.0. Hooks are meant to allow react functional components to work as stateful components. The most commonly used hooks are useState and useEffect hooks. Today we will discuss useReducer hook, which is a more powerful functional hook to replace multiple useState hooks in an efficient and optimize Continue Reading »

Working of React Portals

ReactJS is one of the most powerful Javascript frameworks out there. It has a lot of small features that help build amazing user interfaces. React Portals is one such feature. They were introduced in version 16.0 of React. React Portals are the child elements that won’t stay with the parent root node. The use cases Continue Reading »