React.memo() increases the performance of pure functional components by preventing useless re-renders. But such performance tweaks must be applied wisely.
Modals, there are a thousand ways of implementing them, but the biggest challenge is to keep them simple and flexible. Let’s do that with React Hooks and Portals!