ijunseong

Update: /list API 수신 테스트 코드

...@@ -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">
......