Ohans Emmanuel

  http://www.ohansemmanuel.com Visit me at www.ohansemmanuel.com to learn more about what I do!


22 Stories by Ohans Emmanuel

Understanding when not to use the useMemo React Hook

Learn when not to use the useMemo React Hook, such as when a memoized value is not used frequently or a computation is not...
14 8 min read

React Hooks cheat sheet: Best practices with examples

Editor’s note: This React Hooks tutorial was last updated on 6 March 2023 to include more React Hooks best practices and examples. React Hooks...
9 18 min read

How to initialize state using React Hooks

Learn how to initialize state and implement advanced React component patterns using React Hooks like useState and the key property.
4 8 min read

Build powerful React forms with Informed

Learn how to build forms that are resilient and customizable with Informed, a new competitor to Formik for React form building.
0 12 min read

Using the React children prop with TypeScript

Learn about the recommended ways you can use the React children prop in TypeScript projects in this detailed, example-by-example tutorial.
2 3 min read

How to dynamically assign properties to an object in TypeScript

TypeScript's Record utility type is useful for many reasons. In this post, you can learn how to use it to dynamically assign props to...
2 4 min read

How to refactor React components to use Hooks

When you refactor your application to use React Hooks, the first problem you’ll face happens to be the root issue from which other challenges...
4 15 min read

Data fetching with Redux and Axios

Learn how to use Redux and a library like Axios to turn data fetching and state management from a nightmare to a breeze.
27 13 min read

Build strongly typed polymorphic components with React and TypeScript

Learn how to build strongly typed polymorphic React components with TypeScript, using familiar UI component props as guides.
1 24 min read

Accessing previous props or state with React Hooks

Access previous props and states from within functional components using the useRef, useState, usePrevious, and useEffect React Hooks.
17 5 min read

React useLayoutEffect vs. useEffect with examples

Essentially, the difference between useEffect and useLayoutEffect lies solely in when the two are fired. Look into the inner workings and best use cases...
6 7 min read

How browser rendering works — behind the scenes

How do browsers bring web apps to life? Understanding client-side rendering will empower you to truly optimize your web projects.
28 12 min read