Hello, World.
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 each…
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 end…
Follow My Blog
Get new content delivered directly to your inbox.
