Hacker News new | ask | show | jobs
dot.dom: A feature-rich JavaScript template engine in 510 byes (github.com)
3 points by icharala 3412 days ago
2 comments

I created a codepen where you can try it in action: https://codepen.io/anon/pen/Kargex?editors=0010#0
What is this syntax? const {clicks=0} = state;
It's object deconstructuring, including a default value: https://developer.mozilla.org/en/docs/Web/JavaScript/Referen...