Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baiguangyao
mr-julyedu
Commits
c8b8ab74
Commit
c8b8ab74
authored
Aug 31, 2020
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
eb603de4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
package.json
+1
-1
src/components/ts-test/index.tsx
+3
-5
No files found.
package.json
View file @
c8b8ab74
...
...
@@ -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"
,
...
...
src/components/ts-test/index.tsx
View file @
c8b8ab74
...
...
@@ -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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment