- 🔭 I’m currently working on a retail website
- 🌱 I’m currently going deep on Testing (see goal below)
- 🥅 2023 Goals: testing, testing, testing
-
Genting Uk
- Hull
- https://darrenwhite.dev/
- @dlw
Pinned Loading
-
Hooks
Hooks 1import { useEffect, useState } from 'react';
23const useDebounce = (value, delay = 500) => {
4// State and setters fpr debounced value
5const [debouncedValue, setDebouncedValue] = useState(value);
-
Working with JS Date and Date-fns li...
Working with JS Date and Date-fns library 1// Max Date
2const { format, isBefore, isValid, subYears, parseISO } = require('date-fns');
34const maxDate = format(subYears(new Date(), 18), 'yyyy-MM-dd');
5const maxResult = isBefore(dobDate, parseISO(maxDate, 1));
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.