Ceci García GarcíainTrabePreventing click events on double click with React, the performant wayA solution to avoid handling click events twice in a double click event.3 min read·Mar 30, 2020--3--3
Ceci García GarcíainTrabeImplementing setTimeout using requestAnimationFrameAn alternative implementation of setTimeout that uses the requestAnimationFrame under the hood to give our callback a higher priority2 min read·Mar 9, 2020--5--5
Ceci García GarcíainTrabeCan we rely on useCallback as a semantic guarantee?How can we ensure a callback doesn’t change? Is useCallback susceptible to cache busting? Please send help!3 min read·Sep 30, 2019--3--3
Ceci García GarcíainTrabePrevent click events on double click with React (with and without Hooks)A solution to avoid handling click events twice in a double click event3 min read·Jul 22, 2019--5--5
Ceci García GarcíainTrabeReact useRef HookWhat is the useRef Hook, what can we use it for and some advices to using it.3 min read·Jul 1, 2019--11--11
Ceci García GarcíainTrabeImplementing private routes with React Router and HooksBasic example of a React app with private routes using React Router and React Context3 min read·Jun 17, 2019--2--2
Ceci García GarcíainTrabePassing callbacks down with React HooksA pattern to pass callbacks down through component’s hierarchy by sharing a memoized API object through the React Context.4 min read·Apr 8, 2019--8--8
Ceci García GarcíainTrabeReact useEffect HookWhat is the useEffect hook, how does it look like, how to use it and how does it work.3 min read·Mar 18, 2019--7--7
Ceci García GarcíainTrabeReact useReducer hookWhat is the useReducer hook, how does it look like and when should we use it instead of the useState hook.3 min read·Feb 4, 2019--6--6
Ceci García GarcíainTrabeReact 16.8What is a React Hook? What problems does a Hook resolve? How can we use them? Plus a glimpse to useState and useEffect Hooks.5 min read·Dec 3, 2018--2--2