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() {