Comment

Comment by aenigmaclamo

It is fired on every instance of the component. However, if you create the arrow function in the render function, it'll be created for every render. Since React keeps the component instances around between renders, it can be a lot better.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton