My blog and works:
https://www.jessewei.net/
const id = (await params).id
const id = (await params).id
props: [number, string];
#TypeSafty #DevTips
props: [number, string];
#TypeSafty #DevTips
const [va1, val2] = prop;
<ChildComp prop={val2}>
I got the error, Type 'string | number' is not assignable to type 'string'.
const [va1, val2] = prop;
<ChildComp prop={val2}>
I got the error, Type 'string | number' is not assignable to type 'string'.
www.jessewei.net/articles/und...
www.jessewei.net/articles/und...
www.jessewei.net/articles/und...
www.jessewei.net/articles/und...
• If we want to modify the original data, we should operate on it directly.
• If we need to preserve the original, we should explicitly create a copy and modify the copy.
• If we want to modify the original data, we should operate on it directly.
• If we need to preserve the original, we should explicitly create a copy and modify the copy.