@material-ui/core/styles#createGenerateClassName JavaScript Examples

The following examples show how to use @material-ui/core/styles#createGenerateClassName. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: getPageContext.js    From next-qrcode with MIT License 6 votes vote down vote up
function createPageContext() {
  return {
    // This is needed in order to deduplicate the injection of CSS in the page.
    sheetsManager: new Map(),
    // This is needed in order to inject the critical CSS.
    sheetsRegistry: new SheetsRegistry(),
    // The standard class name generator.
    generateClassName: createGenerateClassName(),