---
title: "Mateusz Pigula (@mateuszpigula) | Hashnode"
description: "Mateusz Pigula (@mateuszpigula) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@mateuszpigula"
---

@mateuszpigula

# Mateusz Pigula

@mateuszpigula · Joined September 2022

## Comments

[Don't you have a mistake in the 7th snippet? '#my-element' is just a string. We should pass there document.querySelector('#my-element') or ref, or query for an element inside the onClickOutside function, right?](https://hashnode.com/posts/19-practical-es6-snippets-to-solve-common-js-problems/632346bfdd55cd8b89b1986b/comment/6335fb60e594fa4ba3b8cea9)

Comment · Article · Sep 29, 2022 · [19 Practical ES6 Snippets to Solve Common JS Problems 🚀💯](https://hashnode.com/posts/19-practical-es6-snippets-to-solve-common-js-problems/632346bfdd55cd8b89b1986b)
