dot.dom: A feature-rich JavaScript template engine in 510 byes
1–4 of 4 posts
Re: dot.dom: A feature-rich JavaScript template engine in 510 byes
#2What is this syntax? const {clicks=0} = state;
Re: dot.dom: A feature-rich JavaScript template engine in 510 byes
#3What is this syntax? const {clicks=0} = state;
It's object deconstructuring, including a default value: https://developer.mozilla.org/en/docs/Web/JavaScript/Referen...
Re: dot.dom: A feature-rich JavaScript template engine in 510 byes
#4I created a codepen where you can try it in action: https://codepen.io/anon/pen/Kargex?editors=0010#0