Without React.memo() or useMemo()

Select a cheese and we will tell you which wine goes best!

Nothing has changed here but I've now rendered: 0 time(s)

With React.memo()

Select a cheese and we will tell you which wine goes best!

Nothing has changed here but I've now rendered: 0 time(s)

With useMemo()

Select a cheese and we will tell you which wine goes best!

I'll only re-render when you click Force render.

I've now rendered: 0 time(s)