Download react-page/examples/utils/createEmotionCache.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 331 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-page/examples/utils/createEmotionCache.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-page/examples/utils/createEmotionCache.ts
-
curl -L -o createEmotionCache.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-page/examples/utils/createEmotionCache.ts
331 Bytes
| import createCache from '@emotion/cache'; | |
| // prepend: true moves MUI styles to the top of the <head> so they're loaded first. | |
| // It allows developers to easily override MUI styles with other styling solutions, like CSS modules. | |
| export default function createEmotionCache() { | |
| return createCache({ key: 'css', prepend: true }); | |
| } | |