Download Netflix-Clone/src/Components/CollectionGrid/CollectionGridTVShows.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 572 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Netflix-Clone/src/Components/CollectionGrid/CollectionGridTVShows.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/Netflix-Clone/src/Components/CollectionGrid/CollectionGridTVShows.js
-
curl -L -o CollectionGridTVShows.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Netflix-Clone/src/Components/CollectionGrid/CollectionGridTVShows.js
572 Bytes
| import { connect } from "react-redux"; | |
| import { createStructuredSelector } from "reselect"; | |
| import { compose } from "redux"; | |
| import { selectIsTVFetching } from "../../Redux/TVShow/tv-selectors"; | |
| import WithSpinnerTVShows from "../WithSpinner/WithSpinnerTVShows"; | |
| import CollectionGrid from "./CollectionGrid"; | |
| const mapStateToProps = createStructuredSelector({ | |
| isTVGridLoading: selectIsTVFetching | |
| }); | |
| const CollectionGridTVShows = compose( | |
| connect(mapStateToProps), | |
| WithSpinnerTVShows | |
| )(CollectionGrid); | |
| export default CollectionGridTVShows; | |