🏠
Working from home
Front-End Developer | Web App Penetration Tester || Passionate about Programming and cybersecurity @HaithemBen98
Block or Report
Block or report Haithem-BEN
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned
-
react-colors
react-colors PublicForked from Colt/react-colors
Clone of Flat UI Colors, made for my Modern React Bootcamp Course
JavaScript
-
-
-
useAsync Hook - To help with async c...
useAsync Hook - To help with async calls -- #ReusableCode 1import { useCallback, useEffect, useState } from 'react';
2import useToggle from './useToggle';
34function useAsync(asyncFunc, immediate = true) {
5const [status, setStatus] = useState(immediate ? 'pending' : 'idle');
-
a Hook to check if the component is ...
a Hook to check if the component is still mounted or not 1import { useEffect, useCallback, useRef } from 'react';
23const useIsMounted = () => {
4const isMounted = useRef(false);
5 -
useToggle
useToggle 1import { useCallback, useState, useReducer } from 'react';
23function useToggle(initialState = false) {
4const [state, setState] = useState(initialState);
5
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.