Download react-redux-realworld-example-app/src/components/Article/CommentList.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 425 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-redux-realworld-example-app/src/components/Article/CommentList.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-redux-realworld-example-app/src/components/Article/CommentList.js
-
curl -L -o CommentList.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-redux-realworld-example-app/src/components/Article/CommentList.js
425 Bytes
| import Comment from './Comment'; | |
| import React from 'react'; | |
| const CommentList = props => { | |
| return ( | |
| <div> | |
| { | |
| props.comments.map(comment => { | |
| return ( | |
| <Comment | |
| comment={comment} | |
| currentUser={props.currentUser} | |
| slug={props.slug} | |
| key={comment.id} /> | |
| ); | |
| }) | |
| } | |
| </div> | |
| ); | |
| }; | |
| export default CommentList; | |