Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Modify to remove unnecessary type arg
  • Loading branch information
sosukesuzuki committed Jan 26, 2019
commit c13d8100307937bc953d7c08b97c71bb69718b88
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ interface CounterProps {
}

export default function Counter({initialCount}: CounterProps) {
const [count, setCount] = React.useState<number>(initialCount);
const [count, setCount] = React.useState(initialCount);
return (
<>
Count: {count}
Expand Down
2 changes: 1 addition & 1 deletion playground/src/hooks/use-state.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ interface CounterProps {
}

export default function Counter({initialCount}: CounterProps) {
const [count, setCount] = React.useState<number>(initialCount);
const [count, setCount] = React.useState(initialCount);
return (
<>
Count: {count}
Expand Down