Open in app

Sign In

Write

Sign In

Erin Greenhalgh
Erin Greenhalgh

31 Followers

Home

About

Sep 29, 2022

Currying to Separate Concerns in React

Currying! It’s a concept I’ve run across but had little reason to use until recently, when I found myself in an interesting situation in my React codebase. The Situation I was working on a fairly complex nested form. The example in this post is is parallel to the production feature I was…

React

4 min read

Currying to Separate Concerns in React
Currying to Separate Concerns in React
React

4 min read


Published in Dev Genius

·May 17, 2022

Honest Programming with useEffect

useEffect is a seemingly simple function, but it requires a non-trivial knowledge of React and of Javascript in order to use it well. Programmers of all experience levels find themselves grappling with the hook at one time or another. One reason it is tricky is because many people who are…

React

6 min read

Honest Programming with useEffect
Honest Programming with useEffect
React

6 min read


Published in Software @ Fast Radius

·Apr 23, 2021

Testing Context-Wrapped React Components

Summary In our frontend application, we make use of components that subscribe to context providers, and those providers often contain state-updating logic. Test setup for context-wrapped components is often confusing, and quite frankly, a pain. There are two main options for testing these context-wrapped components: Use a static context provider with…

Reactjs

3 min read

Testing Context-Wrapped React Components
Testing Context-Wrapped React Components
Reactjs

3 min read


Published in Software @ Fast Radius

·Feb 21, 2020

Maps vs Keyword Lists in Elixir

I recently went down a rabbit hole with a coworker, asking ourselves, “What is the difference between a map and a keyword list?” We knew that they both provide the similar seeming capabilities to store and access key-value information but were unsure of the underlying differences. Consulting the docs on…

Elixirlang

2 min read

Maps vs Keyword Lists in Elixir
Maps vs Keyword Lists in Elixir
Elixirlang

2 min read


Published in Software @ Fast Radius

·Oct 17, 2019

Wiring Up Phoenix Channels with React Hooks

At Fast Radius, we’re building responsive and performant applications in Elixir + Phoenix and React. We’ve leveraged Phoenix channels to help improve our UX. What are channels? Channels are a way to send messages in real time between server and client over a persistent connection. Channels make use of Phoenix’s built-in websocket capabilities…

Java Script

4 min read

Wiring Up Phoenix Channels with React Hooks
Wiring Up Phoenix Channels with React Hooks
Java Script

4 min read


Published in Reverb.com — Fretboards and Motherboards

·Feb 22, 2019

Forms and Semantic HTML in React

Recently I was debugging some React code that was allowing a form to submit its contents even when the user did not check a required checkbox. Client side, HTML5 validations weren’t running at all, and the user had to wait for server errors to know that they had typed…

Java Script

3 min read

Forms and Semantic HTML in React
Forms and Semantic HTML in React
Java Script

3 min read


Published in Reverb.com — Fretboards and Motherboards

·Dec 21, 2018

Mocking React Modal with Jest

I love testing and am always looking for quality-of-life improvements that decrease the barriers to writing good tests. Here’s a small one with a big impact. Problem: I can’t access react-modal from the component I’m testing I’m working on a component that leverages react-modal and wraps it in a custom modal component. In this simplified example, I have a parent…

Java Script

1 min read

Java Script

1 min read


Dec 11, 2017

3 Themes from RubyConf 2017: Existentialism

In November I attended my first RubyConf and spent a whirlwind three days trying to learn all the things. Now that the dust has settled, here is part two of three themes that have crystalized, which I know I will find myself mulling over for weeks to come. Read my…

Programming

3 min read

3 Themes from RubyConf 2017: Existentialism
3 Themes from RubyConf 2017: Existentialism
Programming

3 min read


Dec 6, 2017

3 Themes from RubyConf 2017: Failure

In November I attended my first RubyConf and spent a whirlwind three days trying to learn all the things. Now that the dust has settled, here is part two of three themes that have crystalized, which I know I will find myself mulling over for weeks to come. TL;DR — Speakers and Talks Jess Rudder…

Chaos Engineering

2 min read

3 Themes from RubyConf 2017: Failure
3 Themes from RubyConf 2017: Failure
Chaos Engineering

2 min read


Dec 5, 2017

3 Themes from RubyConf 2017: What If Ruby?

In November I attended my first RubyConf and spent a whirlwind three days trying to learn all the things. Now that the dust has settled, here is the first of three themes that have crystalized, which I know I will find myself mulling over for weeks to come. 1. What if Ruby…? In February…

Programming

2 min read

3 Themes from RubyConf 2017: What If Ruby?
3 Themes from RubyConf 2017: What If Ruby?
Programming

2 min read

Erin Greenhalgh

Erin Greenhalgh

31 Followers

Software developer; language enthusiast

Following
  • Vaidehi Joshi

    Vaidehi Joshi

  • Heidi Waterhouse

    Heidi Waterhouse

  • andrea echstenkamper

    andrea echstenkamper

  • Erik Benoist

    Erik Benoist

  • Geoff Massanek

    Geoff Massanek

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech