-
Use state callbacks in React
When you need to reference the previous state, pass a callback function to React's setState.
-
Render and effect call order in React
Renders are called top-down, but effects are called bottom-up.
-
Create a useIsOnline React hook
Using the Navigator's onLine property and online/offline events to create a custom React hook
-
Farewell Create React App
The React team is looking to transition Create React App from a project scaffold to a launcher that includes options other than client-side rendering
-
When to use React's memo HOC
The memo higher-order component can prevent your component for re-rendering unnecessarily, but you should use caution before using it
-
Use remark to covert markdown into HTML
The missing "hello world" example to get up and running with remark
-
Should I snapshot my UI components?
The temptation is strong, but consider some of the tradeoffs.
-
Storing data in state vs. class variable
Why do we store data in state as opposed to on the class?
-
Adding accessibility checks to your React app
A few tools to help you build more accessible React applications
-
Convert class components to functions with React Hooks
A step by step guide to converting old components to modern React
-
How to create a render prop component
Render props are a popular technique in modern React, but they can be tricky. Here is a brief explanation and guide to creating your own.