From ffd9bb80e079ca861010b0cfce086761e9b9960c Mon Sep 17 00:00:00 2001 From: sebkolind Date: Mon, 3 Jun 2024 19:23:25 +0200 Subject: [PATCH] docs(readme): don't use unnecessary arrow function --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 83ba985..1cfc55e 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ const Counter: Component = { // Initial state state: { count: 0 }, // Define the view - view: ({ state }) => { + view({ state }) { return button( `You clicked ${state.count} times`, // Add attributes to the button