Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
vbezhenar
on March 23, 2023
|
parent
|
context
|
favorite
| on:
You might not need an effect
`{a, b, c}` is a syntax sugar for `{"a": a, "b": b, "c": c}`, i.e. useEffect has access to the dependency values.
dalmo3
on March 24, 2023
[–]
> `{a, b, c}` is a syntax sugar for `{"a": a, "b": b, "c": c}`
Not in function arguments. In function arguments that syntax does destructuring.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: