Open constgen opened 5 years ago
Functions that start with on..., e.g. onWindowResize, onMount always should be higher order functions that allow a callback as an argument. They can be called in the code with callbacks but can't be passed as arguments to another functions.
on...
onWindowResize
onMount
Functions that start with
on...
, e.g.onWindowResize
,onMount
always should be higher order functions that allow a callback as an argument. They can be called in the code with callbacks but can't be passed as arguments to another functions.