From d08fe31ac84db6208c11b5731127f15fdf49d455 Mon Sep 17 00:00:00 2001 From: Alvaro Junqueira Date: Wed, 1 Dec 2021 08:48:50 +0100 Subject: [PATCH] Update remove-event-listener.md Fixing the name of the function --- docs/rules/remove-event-listener.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/rules/remove-event-listener.md b/docs/rules/remove-event-listener.md index 537aa8b..4983b91 100644 --- a/docs/rules/remove-event-listener.md +++ b/docs/rules/remove-event-listener.md @@ -186,12 +186,12 @@ class App { componentDidMount() { this.rootNodeRef.addEventListener('click', this.handleRootNodeClick) - this.rootNodeRef.addEventListener('clack', handleClickClack) + this.rootNodeRef.addEventListener('clack', handleClack) } componentWillUnmount() { this.rootNodeRef.removeEventListener('click', this.handleRootNodeClick) - this.rootNodeRef.removeEventListener('clack', handleClickClack) + this.rootNodeRef.removeEventListener('clack', handleClack) } render() {