Found 74 bookmarks
Custom sorting
Using global memoization in React
Using global memoization in React
When our React apps get slow, we usually turn to useMemo to avoid useless job on re-render. It’s a hammer that often works well, and makes it hard to shoot yourself in the foot. But useMemo is not a s
·thoughtspile.github.io·
Using global memoization in React
How to destroy your app performance using React contexts
How to destroy your app performance using React contexts
useContext hook has made React Context API so pleasant to work with that many people are even suggesting that we drop external state management solutions and rely on the built-in alternative instead.
·thoughtspile.github.io·
How to destroy your app performance using React contexts
When to useMemo and useCallback
When to useMemo and useCallback
Performance optimizations ALWAYS come with a cost but do NOT always come with a benefit. Let's talk about the costs and benefits of useMemo and useCallback.
·kentcdodds.com·
When to useMemo and useCallback
How to use React.memo() to improve performance
How to use React.memo() to improve performance
Learn how to use React.memo, some common pitfalls you might encounter, and why you shouldn't use React.memo for all your components.
·felixgerschau.com·
How to use React.memo() to improve performance
React is slow, what now? | NoSleep Javascript Blog
React is slow, what now? | NoSleep Javascript Blog
We study React applications performance from the ground up, the processes involved, the tools to measure and identify slow parts, the important metrics to take in account, how these impact the UX and the various ways there are available to make applications super fast and smooth. Grab a cup of coffee and enjoy the ride. By franleplant
·nosleepjavascript.com·
React is slow, what now? | NoSleep Javascript Blog
React Query Error Handling | TkDodo's blog
React Query Error Handling | TkDodo's blog
After covering the sunshine cases of data fetching, it's time to look at situations where things don't go as planned and "Something went wrong..."
·tkdodo.eu·
React Query Error Handling | TkDodo's blog
Stop using isLoading booleans
Stop using isLoading booleans
Why using a status enum (or even better: a state machine) will help your app stay bug free
·kentcdodds.com·
Stop using isLoading booleans
Demystifying styled-components
Demystifying styled-components
For so many React devs, styled-components seems kinda magical. It isn't at all clear how it uses traditional CSS features under-the-hood, and that lack of clarity can cause real problems when things go awry. In this post, we'll learn exactly how styled-components works by building our own mini-version.
·joshwcomeau.com·
Demystifying styled-components
Next.js with MobX
Next.js with MobX
In this article I will go over using MobX with Next.js in a more practical manner than the with-mobx example in the Next.js repo. While the official example provides a good understanding of how to install and configure MobX, it does not do a good job of indicating how it can be practically used especially in the case of multiple stores and in a page with getInitialProps. This example will show you how to setup MobX in Next.js as well as how to hydrate the client side store with server side data.
·themikelewis.com·
Next.js with MobX