Full stack developer from Pakistan.
๐ฏ
Focusing
Full stack Javascript Developer | Javascript, React, Typescript, Node/Express, MongoDB (MERN) ,SQL, PostgreSQL | Open source enthusiast
- pakistan
- @codewithhami
Highlights
Pinned Loading
-
get-motivated
get-motivated PublicMotivation quotes from different peoples of different age of time.
JavaScript
-
password-protected-file-sharing
password-protected-file-sharing PublicThis repository contains the code for how to create a simple file sharing site that also includes password protected files and a download count tracker. This project uses Express and MongoDB.
JavaScript
-
React Hook for Detecting Clicks Outs...
React Hook for Detecting Clicks Outside a Component: This is a simple and efficient way to detect clicks outside a React component. By using the MutableRefObject and useEffect hooks from React, you can easily listen to mousedown events on the document and trigger a callback function when a click outside of a component is detected. This is useful for creating dropdown menus, modals, and other UI components that need to close when a user clicks outside of them. The code is easy to understand and can be easily integrated into your React projects. 1import { MutableRefObject, useEffect,useState } from 'react';
23// Define the type for the hook, which takes two arguments: a reference to a component and a callback function
45type OutsideNotifierHook = (
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.