Skip to content

Commit c1706fd

Browse files
committed
fix invalid prop type warning
1 parent 6dc568e commit c1706fd

File tree

1 file changed

+1
-1
lines changed
  • examples/basic/src/components/Button

1 file changed

+1
-1
lines changed

examples/basic/src/components/Button/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@ You can change the default state:
5555

5656
```jsx
5757
initialState = {count: 42};
58-
<Button onClick={() => setState({count: state.count+1})}>{state.count}</Button>
58+
<Button onClick={() => setState({count: state.count+1})}>{state.count.toString()}</Button>
5959
```

0 commit comments

Comments
 (0)