Commit c8b8ab74 by zhanghaozhe

test

parent eb603de4
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
} }
}, },
"lint-staged": { "lint-staged": {
"*.(js|css|ts[x]?)": ["prettier --write", "git add ."] "*.(js|css|ts[x])": ["prettier --write", "git add ."]
}, },
"eslintConfig": { "eslintConfig": {
"extends": "react-app", "extends": "react-app",
......
...@@ -13,16 +13,14 @@ const TSTest: React.FC = () => { ...@@ -13,16 +13,14 @@ const TSTest: React.FC = () => {
return ( return (
<div> <div>
<p>You clicked {count} times</p> <p>You clicked {count} times</p>
<button onClick={() => setCount(count + <button onClick={() => setCount(count + 1)}>Click me</button>
1)}>Click me</button>
<button onClick={handleAlertClick}>Show alert</button> <button onClick={handleAlertClick}>Show alert</button>
</div> </div>
) )
} }
function C(a=2, b=3,c=4,d=5,e=6) { function C(a = 2, b = 3, c = 4, d = 5, e = 6) {
return d return d
} }
export default withRouter(TSTest) 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