Showing
1 changed file
with
7 additions
and
0 deletions
| ... | @@ -115,6 +115,13 @@ export class ChannelList extends React.Component { | ... | @@ -115,6 +115,13 @@ export class ChannelList extends React.Component { |
| 115 | } | 115 | } |
| 116 | } | 116 | } |
| 117 | 117 | ||
| 118 | + componentDidMount() { | ||
| 119 | + console.log('channel cdm'); | ||
| 120 | + fetch('http://localhost:3303/list').then( res => res.json()) | ||
| 121 | + .then(data => console.log(data)) | ||
| 122 | + // 수신 테스트 | ||
| 123 | + } | ||
| 124 | + | ||
| 118 | render() { | 125 | render() { |
| 119 | return ( | 126 | return ( |
| 120 | <div className="channel__list"> | 127 | <div className="channel__list"> | ... | ... |
-
Please register or login to post a comment