From 3accd7806ad3dd8caaf70aa874ee5a6b3ca1a894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Wahlberg?= Date: Tue, 8 Dec 2020 11:44:37 +0100 Subject: [PATCH] Add help message for button errors --- src/components/Button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Button.js b/src/components/Button.js index 873dc00..da798fc 100644 --- a/src/components/Button.js +++ b/src/components/Button.js @@ -13,7 +13,7 @@ class Button extends Component { func(); }); } else { - console.log("Error when parsing Button onClick functions."); + console.log("Error when parsing Button onClick functions. Make sure the functions are passed as an array."); } } }