const Home : NextPage = () => {
const [year, selectYear] = useState("1980");
const [month, selectMonth] = useState("1");
const [day, selectDay] = useState("1");
useEffect(() => {
・・・
}, []);
・・・
return(
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
}
const Container = () => {
1
const [year, selectYear] = useState("1980");
2
const [month, selectMonth] = useState("1");
3
const [day, selectDay] = useState("1");
4
5
6
useEffect(() => {
7
...
8
}, []);
9
10
return(
11
16
}
17
}
18
19
const Component = ({
20
year,
21
month,
22
day
23
}: Props) => {
24
return (
25
26
27
28
)
29
30
const Container = () => {
const [year, selectYear] = useState("1980");
const [month, selectMonth] = useState("1");
const [day, selectDay] = useState("1");
useEffect(() => {
...
}, []);
return(
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const Component = ({
20
year,
21
month,
22
day
23
}: Props) => {
24
return (
25
26
27
28
)
29
}
30
const Component = ({
year,
month,
day
}: Props) => {
return (
)
}
const Container = () => {
1
const [year, selectYear] = useState("1980");
2
const [month, selectMonth] = useState("1");
3
const [day, selectDay] = useState("1");
4
5
6
useEffect(() => {
7
...
8
}, []);
9
10
return(
11
16
}
17
}
18
19
20
21
22
23
24
25
26
27
28
29
30
const Container = () => {
const [year, selectYear] = useState("1980");
const [month, selectMonth] = useState("1");
const [day, selectDay] = useState("1");
useEffect(() => {
...
}, []);
return(
}
}
const Component = ({
year,
month,
day
}: Props) => {
return (
)
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Presentation Domain Separation