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”
Author Archives: Andrea (Andy) Barr
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”
The Easiest Way to Include a Demo in your GitHub Readme
Devs on the job market right now know (or should know) how important it is to have a polished-looking GitHub page, especially in regards to the readme. Though there are plenty of guides with dos and don’ts, tips and tricks, etc., something I realized quickly was that virtually no hiring manager or lead dev isContinue reading “The Easiest Way to Include a Demo in your GitHub Readme”
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”
Changing Button Text in Amplify Auth UI Components
For those of you who haven’t tried customizing AWS Amplify’s UI components, this might seem a bit silly to write a blog post about. For those of you who have or are in the process, you can thank me later. In the early stages of adding authentication to an application I’m working on, I wantedContinue reading “Changing Button Text in Amplify Auth UI Components”
Getting Started with React Hooks
Recently, when speaking to an interviewer about my bootcamp experience and the technologies I’ve learned since then, he was a bit surprised I hadn’t begun learning Hooks yet. As a matter of fact, I was too. I started a tutorial last week and though I’m only a couple hours in, I’d like to share whatContinue reading “Getting Started with React Hooks”
Easy Customization of Amplify Auth Components in React
As my team nears the launch date for new application features that require secure authentication, we’re in the process of building our own customized components. In the first phases of design, however, full customization was not at the top of the priority list. During that time I needed to ensure that our pages were fullyContinue reading “Easy Customization of Amplify Auth Components in React”
GraphQL’s Type System
The backbone of GraphQL’s structure as a query language is its type system. The community has put together fantastic and thorough documentation and tutorials on GraphQL types and how to begin structuring your own schema, but the purpose of this post is to give you a quick overview so that the structure seems a bitContinue reading “GraphQL’s Type System”
A Beginner’s Guide to GraphQL: A Short Introduction
Hey all! I realize it’s been a while since I last posted. Amidst the chaos of the last weeks of bootcamp, the beginning of a new career (yay!), and adjusting to a WFH routine during a pandemic, I chose to take a step away from the blog for a bit. Now I’m back, and readyContinue reading “A Beginner’s Guide to GraphQL: A Short Introduction”
collection_select
My initial thought when trying to make use of collection_select in a form was: You mean I have to memorize something? Why can’t it just be logical and easy? As a rookie Rubyist, I want everything to look as close to English as possible, and this didn’t fit. In my first months of programming, I’veContinue reading “collection_select”
