Skip to content

Commit ad6683d

Browse files
committed
fix: example convert space- to flex and gap-
1 parent b356c9c commit ad6683d

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

packages/examples/jsx-client/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function App() {
1616
class="min-h-screen bg-gray-100 py-8 px-4"
1717
on:update="App.tsx, Counter.tsx"
1818
>
19-
<div class="max-w-3xl mx-auto space-y-8">
19+
<div class="max-w-3xl mx-auto flex flex-col gap-8">
2020
<div class="bg-white rounded-lg shadow-md p-6">
2121
<h1 class="text-3xl font-bold text-gray-800 mb-4">Hello {nameSig}</h1>
2222
<input

packages/examples/jsx-client/Counter.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,12 @@ export function Counter() {
3737
)}
3838
>
3939
<div>
40-
<div>
41-
<span class="text-red-500">WIP</span> Render Problem
42-
</div>
40+
<div>Rendering edge cases</div>
4341
</div>
4442
<div class="text-red-500">
4543
Count: {count} Doubled: {doubled} Tripled: {tripled}
4644
</div>
4745
<div>
48-
<div>Fake Fixed Render Problem</div>
4946
Count: <span>{count}</span> Doubled: <span>{doubled}</span> Tripled:
5047
{" "}
5148
<span>{tripled}</span>
@@ -61,7 +58,7 @@ export function Counter() {
6158
</button>
6259
</div>
6360

64-
<div class="space-x-4">
61+
<div class="flex gap-4">
6562
<button
6663
class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-md transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50"
6764
onClick={() => count.value++}

0 commit comments

Comments
 (0)