Unverified Commit 3c3f50dd authored by Starunaway's avatar Starunaway Committed by GitHub

Update examples: counter.tsx - Don't need empty space (#52576)

Don't need empty space
parent 2b98f778
...@@ -13,11 +13,11 @@ export default function Counter({ ...@@ -13,11 +13,11 @@ export default function Counter({
const [count, setCount] = useState(0) const [count, setCount] = useState(0)
return ( return (
<p> <p>
This compoment is rendered on client:{' '} This compoment is rendered on client:
<button onClick={() => setCount((n) => n - 1)}> <button onClick={() => setCount((n) => n - 1)}>
{dictionary.decrement} {dictionary.decrement}
</button>{' '} </button>
{count}{' '} {count}
<button onClick={() => setCount((n) => n + 1)}> <button onClick={() => setCount((n) => n + 1)}>
{dictionary.increment} {dictionary.increment}
</button> </button>
......
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