provably Flarnie Profile picture
Coding, cupcakes, and creativity! Formerly on @reactjs core team. Now hacking React at @Chegg. Former maintainer of @draft_js. Opinions my own. (she/her)
Mar 16, 2022 11 tweets 5 min read
Hey you! Don’t use #React useCallback (or useMemo) for all your callback props, thinking it will improve performance, because it won’t. Here's why - 1/n For every #React `useCallback` call you make, the browser does some work. For a a simple callback, with a fast component, adding the `useCallback` has little or no benefit, and even has a little performance cost. 2/n
Jun 20, 2021 13 tweets 5 min read
Finally listened to the React 18 Working Group Twitter Space, and it provides a nice over of the plans/features coming in React 18!
Curious but busy? Check out my summary in 12 tweets~ 🧵 1/12 React 18 alpha was published, and has exciting new features. For now, you don’t need to read more unless you are curious and/or if you are a library author/educator who wants to get a head start. Details in the blog post - reactjs.org/blog/2021/06/0…