In Pat 11 of this series, we went over how to fetch data using the State and Effect Hooks. Specifically, we used a JSONPlaceholder endpoint and learned how to render all of the post titles to the UI.

Here in Part 12, we’ll learn how to fetch an individual post…

In Part 9 of this series, I went over how we can mimic componentDidMount with the useEffect Hook. As a refresher, we do this by simply passing in an empty array as the second parameter to useEffect.

Here in Part 10, we’ll go over how to mimic componentWillUnmount with the…

The last part of this series showed an example of how to conditionally run effects using the useEffect Hook. As a refresher, in order to conditionally run an effect, you need to specify a second parameter to useEffect. That second parameter is the array of values that the effect depends…

In the last part of this series, we went over an example of using the effect Hook, useEffect. One important point to take away from that last post is that the useEffect Hook is called after every single render.

However, in some cases, applying an effect after every render might…

In Part 2 of this series, we’ll talk about images- specifically controlling the width of images for responsive design. If you’ve ever worked with an image file in your project, then I’m sure you know that when you first drop that image file into the appropriate folder and reference it…

I wanted to take a quick break from my Intro to React Hooks series by starting up a new series around Responsive Web Design. This is another topic that is very interesting to me and that I am attempting to learn more about as I strengthen my skills.

Nowadays, there…

Now that we have a general understanding of the Effect Hook, useEffect, we’ll dive into some examples of when and how to use it. As a refresher from the previous post, useEffect is used for causing side effects in functional components. …

Michael Rosenberg

Software Engineer/Full Stack Web Developer | Ruby, JavaScript, React, Redux

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store