Blog Posts
Working with React Context in TypeScript
Like any other technology, TypeScript can be very helpful or a giant pain in the neck. In a word, TypeScript very much embodies the notion…
React Router v6 Preview
The next major version of React Router, version 6, is just around the corner. We published the first alpha release back in January , and we…
React: "mount" vs "render"?
Here's a brief tldr; "Rendering" is any time a function component gets called (or a class-based render method gets called) which returns…
useEffect(fn, []) is not the new componentDidMount()
We often times do some setup when the component first mounts like a network call or a subscription. We have taught ourselves to think in…
Portals with Context
It seems like React's context is starting to become much more widely adopted, especially since the hook useContext makes it much easier…
When do I use functions in a Hooks Dependency Array?
Hooks were designed to bring functional composition to React, but there are some rules that you'll need to follow in order for them to work…
React Router v5.1
Today, we are releasing React Router version 5.1 . This post will discuss the 5.1 release as well as discuss a few things you can do to…
The Future of React Router and @reach/router
tl;dr We are bringing together the best of React Router and Reach Router into a new, hook-based API. React Router will be the surviving…
Wins for Hooks
Now that hooks have been released for... 🤔 checks watch ...less than two months, you've probably noticed there are a few obvious wins if…
Blog Claps, and lessons on Hooks 🎉
Last week we finished migrating our React Training Blog off Medium and into here. As I was doing the migration I thought, Michael and Ryan…
React Router v5
Today, we are excited to announce the release of React Router version 5 . You can get it using: tl;dr React Router version 5 is now…
Announcing Reach UI Tabs
The latest member of the Reach UI family is here! Tab interfaces are incredibly common on the web, and really easy to build a naive version…
Flow Control in React
Learning how to do JSX with React can be really fun for those who are starting out (once you've mastered some of the confusing parts ). It…
JSX: The Confusing Parts
This article doesn't attempt to explain every single aspect of JSX, but rather to explain the parts that most people find difficult to grasp…
Using Hooks in Classes
One of the things I love about React is that the team behind it makes upgrading so easy (thanks, React folks). With React Hooks, it's no…
Reconciling the useEffect Tree
I wanna talk a little bit about useEffect in React because I absolutely love it and I've noticed a bit of confusion about it in the…