Download wp-calypso/client/components/animate/index.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 270 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/animate/index.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/components/animate/index.jsx
-
curl -L -o index.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/animate/index.jsx
270 Bytes
| import PropTypes from 'prop-types'; | |
| import './style.scss'; | |
| const Animate = ( { type, children } ) => ( | |
| <div className={ `animate__${ type }` }>{ children }</div> | |
| ); | |
| Animate.propTypes = { | |
| type: PropTypes.oneOf( [ 'appear', 'fade-in' ] ), | |
| }; | |
| export default Animate; | |