createEmotionCache.ts
1 import createCache from '@emotion/cache'; 2 3 // prepend: true moves MUI styles to the top of the <head> so they're loaded first. 4 // It allows developers to easily override MUI styles with other styling solutions, like CSS modules. 5 export default function createEmotionCache() { 6 return createCache({ key: 'css', prepend: true }); 7 }