React’s useEffect Hook

If you’re like me and have been relying predominantly on class components in React, you’re probably familiar with methods such as componentDidMount, componentDidUpdate, and componentWillUnmount. When it comes to using hooks, though, useEffect can take the place of all three of the aforementioned lifecycle methods. useEffect is passed a function that is called after eachContinue reading “React’s useEffect Hook”

Getting Started with Hooks (pt. 2): Forms

As most React lovers know, creating even the most basic of forms can feel tedious. At minimum, you need 1. a constructor that holds the state of your form inputs; 2. a handleChange function to listen for any changes to that form; and 3. JSX to render all of the above. It’s easy to endContinue reading “Getting Started with Hooks (pt. 2): Forms”

React’s Virtual DOM

As a React developer, there are a few questions your interviewer is guaranteed to ask. One of them is, “Can you tell me about the Virtual DOM and why it’s important in React?” (to which you’ll say “Of course!” and continue with a brief summary of what you will learn or get a refresher onContinue reading “React’s Virtual DOM”

Create your own website, free on WordPress.com.Create your own website.
Start free