Using Forms in React (daveceddia.com)May 12, 2021
In this article we’ll be focusing on using plain React, with no libraries. You’ll learn how forms really work, so you can confidently build them yourself. And if later you choose to add a form library, you’ll know how they work under the hood.
Using Tailwind CSS with Create React App (daveceddia.com)Mar 30, 2020
I’ve been hearing a lot about Tailwind CSS lately and I wanted to give it a try, but I wanted to combine Tailwind with Create React App. In this post I’ll show you how to use Create React App with Tailwind CSS in just a couple quick minutes.
How I Learned React (daveceddia.com)Oct 17, 2019
Breaking up big problems into tiny bite-sized ones is the only way to really get anything done in this world. It’s how I taught myself React, and it’s how I approach a lot of problems in software.
A Complete React Redux Tutorial for 2019 (daveceddia.com)Mar 10, 2019
In this Redux tutorial I’m going to explain how to use Redux with React incrementally – starting with plain React – and a very simple React + Redux example. I’ll explain why each feature is useful (and when you can skip some).
Access the Redux Store Outside a React Component (daveceddia.com)Feb 26, 2019
The React Redux connect function works great for regular React components, but if you need access to the Redux store in a plain function, the technique is a bit different. In the examples below I’ll show how to access a JWT token from the Redux store, but the techniques will work with any data you might have.
Computed Properties in React (daveceddia.com)Aug 14, 2018
Frameworks like Vue have the notion of “computed properties” – a way to derive some new, possibly complex data based on something passed in. This post covers how to achieve the same result in React.
Redux vs. The React Context API (daveceddia.com)Jul 17, 2018
In this post I want to cover how the new Context API works, how it is similar to Redux, when you might want to use Context instead of Redux, and why Context doesn’t replace the need for Redux in every case.
Learning React? Start Small (daveceddia.com)Jun 21, 2017
I have been trying to learn React for the past year now, on and off. No matter how much I try, I just cannot seem to get off the tutorials. The code just isn’t intuitive.
Snapshot Testing React with Jest (daveceddia.com)Apr 05, 2017
Testing is a double-edged sword. On one hand, having a solid test suite makes code easier to refactor, and gives confidence that it works the way it should. On the other hand, tests must be written and maintained. They have a cost, like any other code.
A Visual Guide to State in React (daveceddia.com)Oct 19, 2016
React's "state" is one of the more difficult concepts to learn. Not just what to put in state, but what it actually is and what it’s for. And also how Redux is related to React state. I hope to clear up some of the confusion in this article.