소스 검색

debug page

Sviluppo_Carrello_Immagini
Lorenzo Pollutri 4 시간 전
부모
커밋
38bb64b83f
1개의 변경된 파일19개의 추가작업 그리고 0개의 파일을 삭제
  1. +19
    -0
      app/admin/test/page.tsx

+ 19
- 0
app/admin/test/page.tsx 파일 보기

@@ -0,0 +1,19 @@
'use client';
import { useState } from 'react';

export default function Test() {
console.log('[TEST] mounted');
const [n, setN] = useState(0);
return (
<div style={{ padding: 40, fontSize: 24 }}>
<h1>Hydration test</h1>
<p>Count: {n}</p>
<button
onClick={() => { console.log('[TEST] click'); setN(n + 1); }}
style={{ padding: '10px 20px', background: '#007', color: '#fff', cursor: 'pointer' }}
>
Click me
</button>
</div>
);
}

불러오는 중...
취소
저장