SnipBits

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…

improve 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…