ReactJS: Handle Single-Click and DoubleClick at the same time (Click Manager) Sometimes you need to have both single-click and double-click handler on a component. You don’t want to single-click-handler run when… Continue reading “ReactJS: Handle Single-Click and DoubleClick at the same time (Click Manager)”…
JavaScript: [].concat() Trick for making a union of items easily If you don’t know an array is real array or is null (it happens when interacting with database most), and… Continue reading “JavaScript: [].concat() Trick for making a union of items easily”…
JavaScript: Better loop instead of for() Sometimes we only need a quicker way to making a loop with a specific number of loops. Just do this:… Continue reading “JavaScript: Better loop instead of for()”…