Skip to content

Instantly share code, notes, and snippets.

@acdcjunior
Created October 26, 2022 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acdcjunior/7f395aaee8c1d1c3e8ff96c143854b3f to your computer and use it in GitHub Desktop.
Save acdcjunior/7f395aaee8c1d1c3e8ff96c143854b3f to your computer and use it in GitHub Desktop.
React from CDN
const {
  Container,
  Pagination,
} = MaterialUI;

function App() {
  return (
    <Container maxWidth="sm">
      <Pagination count={11} defaultPage={6} siblingCount={5} />
    </Container>
  );
}


ReactDOM.createRoot(document.getElementById('app')).render(<App />);
<script type="text/javascript" src="//unpkg.com/react@18/umd/react.production.min.js"></script>
<script type="text/javascript" src="//unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>

<script src="https://unpkg.com/@mui/material@latest/umd/material-ui.development.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" />
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />

<div id="app"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment