Download next.js/test/development/basic/emotion-swc/fixture/pages/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 651 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/basic/emotion-swc/fixture/pages/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/development/basic/emotion-swc/fixture/pages/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/basic/emotion-swc/fixture/pages/index.js
651 Bytes
| import { css } from '@emotion/react' | |
| import { | |
| Animated, | |
| Basic, | |
| bounce, | |
| Combined, | |
| Pink, | |
| BasicExtended, | |
| ComponentSelectorsExtended, | |
| } from '../shared/styles' | |
| const Home = () => ( | |
| <div | |
| id={'test-element'} | |
| css={css` | |
| display: flex; | |
| flex-direction: column; | |
| background-color: pink; | |
| `} | |
| > | |
| <Basic>Cool Styles</Basic> | |
| <Pink>Pink text</Pink> | |
| <Combined> | |
| With <code>:hover</code>. | |
| </Combined> | |
| <Animated animation={bounce}>Let's bounce.</Animated> | |
| <ComponentSelectorsExtended> | |
| <BasicExtended>Nested</BasicExtended> | |
| </ComponentSelectorsExtended> | |
| </div> | |
| ) | |
| export default Home | |