XaveScor/signal-components

Stable functions should return `void` only.

XaveScor opened this issue · 0 comments

type Props = {
  onClick?: () => number;
}

This is incorrect because we cannot create a noop function for any return type except void.