async componentDidMount()

in src/channelList.js [19:32]


    async componentDidMount() {
        try {
            API.graphql({ query: queries.listChannels },).then((reply) => {
                this.setState({
                    channel_list: reply.data.listChannels.items,
                })
                console.log(this.state.channel_list);
            });
        }
        catch (e) {
            console.log("ERROR!!!");
            console.log(e);
        }
    }