Commit c8b8ab74 by zhanghaozhe

test

parent eb603de4
......@@ -130,7 +130,7 @@
}
},
"lint-staged": {
"*.(js|css|ts[x]?)": ["prettier --write", "git add ."]
"*.(js|css|ts[x])": ["prettier --write", "git add ."]
},
"eslintConfig": {
"extends": "react-app",
......
......@@ -13,16 +13,14 @@ const TSTest: React.FC = () => {
return (
<div>
<p>You clicked {count} times</p>
<button onClick={() => setCount(count +
1)}>Click me</button>
<button onClick={() => setCount(count + 1)}>Click me</button>
<button onClick={handleAlertClick}>Show alert</button>
</div>
)
}
function C(a=2, b=3,c=4,d=5,e=6) {
return d
function C(a = 2, b = 3, c = 4, d = 5, e = 6) {
return d
}
export default withRouter(TSTest)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment