File tree 6 files changed +9
-9
lines changed
6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change
1
+ import ClientComponent from '../../components/client'
2
+ import ServerComponent from '../../components/server'
1
3
import { getData } from '../../lib/fetch-data'
2
- import ClientComponent from '../components/client'
3
- import ServerComponent from '../components/server'
4
4
5
5
export default async function MixMatchPage ( ) {
6
6
console . log ( '🚀 ~ file: page.js:5 ~ MixMatchPage' )
7
7
const data = await getData ( )
8
8
9
9
return (
10
- < div >
10
+ < >
11
11
< h1 > Mix Pages</ h1 >
12
12
< div className = "box-blue" >
13
13
< ClientComponent >
14
14
< ServerComponent data = { data } />
15
15
</ ClientComponent >
16
16
</ div >
17
- </ div >
17
+ </ >
18
18
)
19
19
}
Original file line number Diff line number Diff line change 1
- import ServerComponent from '../components/server'
1
+ import ServerComponent from '../../ components/server'
2
2
import { getData } from '../../lib/fetch-data'
3
3
4
4
export default async function Server ( ) {
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
- import Home from ' ./home'
1
+ import Home from " ./home"
2
2
3
3
export default function ServerComponent ( { data } ) {
4
- console . log ( '🚀 ~ ServerComponent' )
4
+ console . log ( '🚀 ~ ServerComponent (this should not be in browser) ' )
5
5
6
6
return (
7
7
< >
Original file line number Diff line number Diff line change 1
- import ClientComponent from ' ../app/ components/client'
2
- import ServerComponent from ' ../app/ components/server'
1
+ import ClientComponent from " ../components/client"
2
+ import ServerComponent from " ../components/server"
3
3
4
4
export default function Page ( { data } ) {
5
5
console . log ( '🚀 pages => index.js' )
You can’t perform that action at this time.
0 commit comments