HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by hubert123 | Hacker News Reader
Parent
Full thread
hubert123
·
What is this syntax? const {clicks=0} = state;
View on HN
icharala
·
It's object deconstructuring, including a default value:
https://developer.mozilla.org/en/docs/Web/JavaScript/Referen...
Reply on news.ycombinator.com