#javascript
Read more stories on Hashnode
Articles with this tag
Here's a simple example of using the React Redux Toolkit to manage the state in a React application: Let's assume we want to create a simple counter...
Here's a basic SIP (Systematic Investment Plan) calculator built with React.js and the useEffect hook. This calculator lets users enter their monthly...
Here's how to make a usePrevious() hook in React, letting you see the last value of a state or prop: import { useRef, useEffect } from 'react'; const...
Here's how to make a useToggle hook in React, which lets you switch between two states (like true and false): import { useState } from 'react'; const...
Here's how to create a useMediaQuery() hook in React. It allows you to display components differently based on the screen size or media query: import...
Here's a list of 10 useful custom hooks that you can use in your React applications: useLocalStorage: A hook for storing state in the browser's local...