File tree 6 files changed +26
-2
lines changed
6 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,13 @@ export const metadata: Metadata = {
12
12
export default function RootLayout ( { children } : { children : React . ReactNode } ) {
13
13
return (
14
14
< html lang = "en" >
15
- < body className = { inter . className } > { children } </ body >
15
+ < body className = { inter . className } >
16
+ < header >
17
+ < a href = "/" > Home</ a > |< a href = "/merge" > Merge</ a > |< a href = "/textarea" > TextArea</ a >
18
+ < br />
19
+ </ header >
20
+ { children }
21
+ </ body >
16
22
</ html >
17
23
) ;
18
24
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
// import Editor from './_editor';
2
2
import { MergeExample } from './_editor/Com' ;
3
3
4
- export default function Merg ( ) {
4
+ export default function Merge ( ) {
5
5
return (
6
6
< div >
7
7
< MergeExample />
Original file line number Diff line number Diff line change
1
+ 'use client' ;
2
+ import { useState } from 'react' ;
3
+
4
+ export default function Merg ( ) {
5
+ const [ value , setValue ] = useState ( '' ) ;
6
+ return (
7
+ < div >
8
+ < textarea
9
+ className = "text-black"
10
+ value = { value }
11
+ onChange = { ( e ) => {
12
+ console . log ( e . target . value ) ;
13
+ setValue ( e . target . value ) ;
14
+ } }
15
+ />
16
+ </ div >
17
+ ) ;
18
+ }
You can’t perform that action at this time.
0 commit comments