Effect
Also written: effect()
Code that runs once at the start and again whenever a signal it reads changes. It suits jobs outside the screen, such as logging or saving to `localStorage`.
Also written: effect()
Code that runs once at the start and again whenever a signal it reads changes. It suits jobs outside the screen, such as logging or saving to `localStorage`.