File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
packages/examples/jsx-client Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export function App() {
16
16
class = "min-h-screen bg-gray-100 py-8 px-4"
17
17
on :update = "App.tsx, Counter.tsx"
18
18
>
19
- < div class = "max-w-3xl mx-auto space-y -8" >
19
+ < div class = "max-w-3xl mx-auto flex flex-col gap -8" >
20
20
< div class = "bg-white rounded-lg shadow-md p-6" >
21
21
< h1 class = "text-3xl font-bold text-gray-800 mb-4" > Hello { nameSig } </ h1 >
22
22
< input
Original file line number Diff line number Diff line change @@ -37,15 +37,12 @@ export function Counter() {
37
37
) }
38
38
>
39
39
< div >
40
- < div >
41
- < span class = "text-red-500" > WIP</ span > Render Problem
42
- </ div >
40
+ < div > Rendering edge cases</ div >
43
41
</ div >
44
42
< div class = "text-red-500" >
45
43
Count: { count } Doubled: { doubled } Tripled: { tripled }
46
44
</ div >
47
45
< div >
48
- < div > Fake Fixed Render Problem</ div >
49
46
Count: < span > { count } </ span > Doubled: < span > { doubled } </ span > Tripled:
50
47
{ " " }
51
48
< span > { tripled } </ span >
@@ -61,7 +58,7 @@ export function Counter() {
61
58
</ button >
62
59
</ div >
63
60
64
- < div class = "space-x -4" >
61
+ < div class = "flex gap -4" >
65
62
< button
66
63
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"
67
64
onClick = { ( ) => count . value ++ }
You can’t perform that action at this time.
0 commit comments