useMountedEffect: asynchronous useEffect on potentially unmounted components
When we use effects, or more precisely the useEffect hook, than because very often we do want to execute something asynchronously. In most scenarios we are doing this when a component gets mounted. Component gets mounted...reacttypescriptreacthooksreact
A simple, reusable keyboard avoiding animation hook, with TypeScript & Reanimated V2!
Animated shared values We need a way to track the keyboard visibility state and coordinates, so we will add two reanimated shared values. Listening to keyboard events Now, let's add the keyboardWillChangeFrame and keyboa...reanimatedreactnativereacthookstypescriptreactnative
Fetching data with React hooks and Axios
Writing Responsive Components in React
In this post, we'll get to understand the implementation of certain hooks in react and as well, making a custom-hook. I'll then illustrate, how these hooks can be unified into making a custom hook, for making components ...reactcustomhookreacthooksresponsivenessreact
A Complete Beginner's Guide to React useState hook [Part 1]
useState: Function can have state?