main
js 22 lines 449 Bytes
Raw
1 /**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 */
8
9 import {useData} from './data';
10
11 export default function Comments() {
12 const comments = useData();
13 return (
14 <>
15 {comments.map((comment, i) => (
16 <p className="comment" key={i}>
17 {comment}
18 </p>
19 ))}
20 </>
21 );
22 }