Skip to content

Commit e52efea

Browse files
committed
Removes semis
1 parent aefaafa commit e52efea

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

use-state/react/src/Counter.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
import React, { useState } from 'react';
1+
import React, { useState } from 'react'
22

33
export default function Counter() {
4-
const [count, setCount] = useState(0);
4+
const [count, setCount] = useState(0)
5+
56
return (
67
<>
78
Count: {count}
89
<button onClick={() => setCount(0)}>Reset</button>
910
<button onClick={() => setCount(prevCount => prevCount - 1)}>-</button>
1011
<button onClick={() => setCount(prevCount => prevCount + 1)}>+</button>
1112
</>
12-
);
13+
)
1314
}

0 commit comments

Comments
 (0)