// @flow import React, { useEffect } from 'react'; import Comment from 'component/comment'; type Props = { comments: Array, fetchComments: string => void, uri: string, }; function CommentList(props: Props) { const { fetchComments, uri, comments } = props; useEffect(() => { fetchComments(uri); }, [fetchComments, uri]); return ( ); } export default CommentList;