Hacker News new | past | comments | ask | show | jobs | submit login

`{a, b, c}` is a syntax sugar for `{"a": a, "b": b, "c": c}`, i.e. useEffect has access to the dependency values.



> `{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: