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