Below you will find pages that utilize the taxonomy term “React”
Posts
read more
How to Create a Timer or Polling in React with setInterval
Have you ever wanted to create a timer in a React app? This could be in support
of a UI timer or polling. In this post, I’ll explain how to create a timer
effect in a React application using hooks and setInterval
.
Posts
read more
What Are the Tradeoffs of Passing Objects as React Props?
A common React pattern is to pass an object as a prop. Let’s consider the ways this can be used and tradeoffs of each.
Posts
read more
Organizing React Components
You’re creating a React app, and want to organize your components. Or maybe you’re working in a legacy codebase, with many components in one directory, and you want to better organize them. In this post, I’ll document an approach to this problem that has worked for me.