---
title: "Comment by Lovepreet Singh on \"🛑 Why You Should Avoid the onclick Attribute in Your Code\" | Hashnode"
description: "Yo, Wasn&#39;t aware about this. Thanks 👉 Also, Guys you react and check my latest blog. Tried to contribute for A simple project for beginners https://lovepre"
url: "https://hashnode.com/posts/why-you-should-avoid-the-onclick-attribute-in-your-code/6395d8b8c53c1fb85a9d9fd4/comment/6396c90115750808b269ebda"
---

[Discussion](https://hashnode.com/posts/why-you-should-avoid-the-onclick-attribute-in-your-code/6395d8b8c53c1fb85a9d9fd4)

Comment [🛑 Why You Should Avoid the onclick Attribute in Your Code](https://hashnode.com/posts/why-you-should-avoid-the-onclick-attribute-in-your-code/6395d8b8c53c1fb85a9d9fd4)

[Lovepreet Singh](https://hashnode.com/@Singh5713)

[Dec 12, 2022](https://hashnode.com/posts/why-you-should-avoid-the-onclick-attribute-in-your-code/6395d8b8c53c1fb85a9d9fd4/comment/6396c90115750808b269ebda)

Yo, Wasn't aware about this. Thanks

👉 **Also, Guys you react and check my latest blog. Tried to contribute for A simple project for beginners** [lovepreet.hashnode.dev/url-shorteners-a-practical…](https://lovepreet.hashnode.dev/url-shorteners-a-practical-approach-mini-project)

Will write more advanced Soon
