SnipBits

Category:React

Optimize the Performance of React Apps - React Hooks

November 28, 2020React 2 Min Read

Hooks are a Feature that let us redefine the way that we write components in React. They let us use the Class based Component Features…

How to build a counter Application in Reactjs ?

November 22, 2020React 1 Min Read

In This Tutorial we will build a simple Counter application in Reactjs, applying many of the concepts and theory that we saw before. a demo…

React Interview Questions

June 27, 2020React 2 Min Read

what is React? Open frontend javascript Library, which is used for building user interfaces especially for SPA , It is used for handling…

optimize the Performance of React Apps

June 23, 2020React 3 Min Read

This article contains some tips to improve the Performance of your React App. memo and PureComponent Consider this small example here : Do…

Detect the browser Window Size with Reactjs Hooks

May 16, 2020React 1 Min Read

This Hook is useful to get the current size of the browser window Use the to initialize the State variable to the first call of . The…

monitoring State with useHoverEffect Reactjs

May 12, 2020React 1 Min Read

In this Snippet, we will be creating a useHoverEffect hook, that allows our components to know about the hover state of any element that we…

Build a Reactjs Switch Toggle Component

May 05, 2020React 1 Min Read

Renders a toggle component. Use the to initialize the state variable to . Use an object, , to hold the styles for individual components…

fetch in a declarative manner in Reactjs with hooks

May 05, 2020React 1 Min Read

A hook that implements in a declarative manner. Create a custom hook that takes a and . Use the hook to initialize the and state…