score:1

Accepted answer
import React from "react";
import { create } from "jss";
import { StylesProvider, jssPreset } from "@material-ui/core/styles";
import Button from "@material-ui/core/Button";

const jss = create({
  ...jssPreset(),
  // Define a custom insertion point that JSS will look for when injecting the styles into the DOM.
  insertionPoint: document.getElementById("custom-jss-insertion-point")
});

export default function App() {
  return (
    <StylesProvider jss={jss}>
      <div className="App">
        <Button variant="contained" color="primary">
          Hello
        </Button>
      </div>
    </StylesProvider>
  );
}

Related Query

More Query from same tag