Skip to content

Commit

Permalink
docs(readme): don't use unnecessary arrow function
Browse files Browse the repository at this point in the history
  • Loading branch information
sebkolind committed Jun 3, 2024
1 parent 95836e4 commit ffd9bb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const Counter: Component<State> = {
// Initial state
state: { count: 0 },
// Define the view
view: ({ state }) => {
view({ state }) {
return button(
`You clicked ${state.count} times`,
// Add attributes to the button
Expand Down

0 comments on commit ffd9bb8

Please sign in to comment.