PinnedInEvolve TechnologybyJoseph Chamochumbi·Jun 12, 2019Using the Hidden Attribute with ReactEvery time a React component mounts, updates or is unmounted, React executes two phases:
Joseph Chamochumbi·Jan 2, 2023The for-of loop complaintHere comes a short one. Why does AirBnb’s lint, complain about for-of loops?
Joseph Chamochumbi·Jan 17, 2022React Component Composition, state and data fetching hooksThis is an expanded version of an answer I gave on the swr discussions page.
Joseph Chamochumbi·Oct 19, 2021In React, should you use Classes or Functional ComponentsIt was never about classes, it was always about state and life cycles.
Joseph Chamochumbi·Jul 16, 2021Using React to understand Abort ControllersIn case you didn’t know, browsers support an API called AbortController, which is typically used to cancel ongoing fetch requests. More…
Joseph Chamochumbi·May 2, 2019useMemo — useCallbackThere’s two hooks which can help you stop unnecessary rendering of React Components. These are useMemo and useCallback.
Joseph Chamochumbi·Sep 13, 2018Clicking the iOS bodyDid you know that iOS devices with touch screen, do not trigger body element click events?
Joseph Chamochumbi·Sep 9, 2018Odd JavaScript, destructured, part 1Recently I came across the following video. Needless to say, as a JavaScript advocate, I felt I had to understand every little quirk…
Joseph Chamochumbi·Aug 24, 2018Reduce your problemsArrays in JavaScript include the method reduce, a powerful functional programming tool.