`defaults` function
XaveScor opened this issue · 0 comments
XaveScor commented
We cannot use default values in destructuring because each prop is Atom
Regular React code:
const {x = 1} = props;
vs signal-components code
const {x} = props;
x; // Atom
We need to have a defaults
function to simplify these operations.