useMemo

πŸ‘¨β€πŸ’Ό Wow! That's a significant improvement!
πŸ¦‰ Even with this improvement, it seems like React is doing a lot of extra work to just rerender our app and ultimately do nothing. Remember that when built for production, React will do much less work and things look even more favorable for us. Feel free to check the built version of the app if you're curious what this looks like:
npm run build
npm run preview