File tree Expand file tree Collapse file tree 5 files changed +49
-3
lines changed Expand file tree Collapse file tree 5 files changed +49
-3
lines changed Original file line number Diff line number Diff line change
1
+ import InputComponent from './InputComponent' ;
2
+ import OutputComponent from './OutputComponent' ;
3
+
4
+ import React from 'react' ;
1
5
2
6
3
7
4
8
function App ( ) {
9
+ let inputProps = { } ;
10
+ let outputProps = { } ;
11
+
5
12
return (
6
13
< div className = "App" >
7
- < main className = "flex min-h-screen bg-blue-500 text-white" >
8
- < h2 className = "text-[120px] m-auto" > json</ h2 >
9
- </ main >
14
+ < InputComponent { ...inputProps } />
15
+ < OutputComponent { ...outputProps } />
10
16
</ div >
11
17
) ;
12
18
}
Original file line number Diff line number Diff line change
1
+
2
+
3
+
4
+ export default function InputComponent ( ) {
5
+ return (
6
+ < div className = "InputComponent py-16 bg-slate-300" >
7
+ < div className = "max-w-4xl mx-auto shadow" >
8
+ < div className = "bg-slate-200 px-6 py-4" >
9
+ < h1 className = "text-xl" > Input</ h1 >
10
+ </ div >
11
+ < div className = "bg-slate-100 px-4 py-4" >
12
+ < textarea name = "" id = "" cols = "30" rows = "10" className = "w-full border-2 border-slate-500" > </ textarea >
13
+ </ div >
14
+ </ div >
15
+ </ div >
16
+ ) ;
17
+ }
Original file line number Diff line number Diff line change
1
+ import InputComponent from './InputComponent' ;
2
+
3
+ export default InputComponent ;
Original file line number Diff line number Diff line change
1
+
2
+
3
+
4
+ export default function OutputComponent ( ) {
5
+ return (
6
+ < div className = "OutputComponent py-16 bg-slate-100" >
7
+ < div className = "max-w-4xl mx-auto shadow" >
8
+ < div className = "bg-slate-200 px-6 py-4" >
9
+ < h1 className = "text-xl" > Output</ h1 >
10
+ </ div >
11
+ < div className = "bg-slate-100 px-4 py-4" >
12
+ < textarea name = "" id = "" cols = "30" rows = "10" className = "w-full border-2 border-slate-500" > </ textarea >
13
+ </ div >
14
+ </ div >
15
+ </ div >
16
+ ) ;
17
+ }
Original file line number Diff line number Diff line change
1
+ import OutputComponent from './OutputComponent' ;
2
+
3
+ export default OutputComponent ;
You can’t perform that action at this time.
0 commit comments