Destructuring with splitProps
Hi there,
Are there any disadvantages of destructuring the
vs
Are there any disadvantages of destructuring the
local object compared to the second example?vs
localconst [{ cat, dog, elk }, rest] = splitProps(props, ['cat', 'dog', 'elk']);
<div>${cat}</div>const [local, rest] = splitProps(props, ['cat', 'dog', 'elk']);
<div>${local.cat}</div>