Ohans Emmanuel

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


20 Stories by Ohans Emmanuel

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...
1 3 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.
26 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...
5 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

React lifecycle methods: An approachable tutorial with examples

Learn all about React lifecycle methods for mounting, updating, unmounting, and error handling, including new methods as of React 17.
10 13 min read

React Router with Redux: Understanding navigation state

Use React Router to declaratively navigate within your React and Redux applications and maintain state across your app’s navigation switches.
2 13 min read

Build a full-stack React app with zero configuration

Simplify building full stack React apps using Zero Server: a framework without configuration.
0 12 min read

React Hooks cheat sheet: Best practices with examples

Editor’s note: This React Hooks tutorial was last updated in January 2021 to include more React Hooks best practices and examples. React Hooks have...
9 14 min read

React Reference Guide: Refs and the DOM

Our complete guide to React refs and the DOM, with suggestions for further reading.
0 7 min read