Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
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
Alex
next.js
Commits
3c3f50dd
Unverified
Commit
3c3f50dd
authored
Jul 12, 2023
by
Starunaway
Committed by
GitHub
Jul 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update examples: counter.tsx - Don't need empty space (#52576)
Don't need empty space
parent
2b98f778
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
counter.tsx
...es/app-dir-i18n-routing/app/[lang]/components/counter.tsx
+3
-3
No files found.
examples/app-dir-i18n-routing/app/[lang]/components/counter.tsx
View file @
3c3f50dd
...
...
@@ -13,11 +13,11 @@ export default function Counter({
const
[
count
,
setCount
]
=
useState
(
0
)
return
(
<
p
>
This compoment is rendered on client:
{
' '
}
This compoment is rendered on client:
<
button
onClick=
{
()
=>
setCount
((
n
)
=>
n
-
1
)
}
>
{
dictionary
.
decrement
}
</
button
>
{
' '
}
{
count
}
{
' '
}
</
button
>
{
count
}
<
button
onClick=
{
()
=>
setCount
((
n
)
=>
n
+
1
)
}
>
{
dictionary
.
increment
}
</
button
>
...
...
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