---
title: "Discussion on \"Handling Events In ReactJS\" | Hashnode"
description: "Discussion on \"Handling Events In ReactJS\". Handling events in ReactJS is very similar to how it’s done on DOM elements. There are a few differences though.\nEvent names are camelCased, so instead of onclick you have to use onClick:\n<button onclick=\"toggleDropdown()\">Categories</button>\n// DOM ..."
url: "https://hashnode.com/posts/handling-events-in-reactjs/6069c20d1ed1783ab063430b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Handling Events In ReactJS](https://ivanov.hashnode.dev/handling-events-in-reactjs?utm_source=hashnode&utm_medium=feed)

Handling events in ReactJS is very similar to how it’s done on DOM elements. There are a few differences though. Event names are camelCased, so instead of onclick you have to use onClick: <button onclick="toggleDropdown()">Categories</button> // DOM ...

Feb 25, 2019 · 2 min read · ivanov.hashnode.dev  
Read the article

## Written by

[Maksim Ivanov](https://hashnode.com/@satansdeer)

@satansdeer · Stockholm, Sweden

  
[View profile](https://hashnode.com/@satansdeer)

Front end developer @ Mojang, I teach people TypeScript and React

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
