import React from 'react'; import { createRoot } from 'react-dom/client'; import { HashRouter as Router, Route, Switch, withRouter } from 'react-router-dom'; import { withStyles } from 'tss-react/mui'; import ExamplesGrid from './ExamplesGrid'; import examples from '../examples'; import Button from '@mui/material/Button'; import { createTheme, ThemeProvider } from '@mui/material/styles'; const styles = { root: { display: 'flex', justifyContent: 'center', }, contentWrapper: { width: '100%', }, }; class Examples extends React.Component { returnHome = () => { this.props.history.push('/'); }; render() { const { classes } = this.props; var returnHomeStyle = { padding: '0px', margin: '20px 0 20px 0' }; const defaultTheme = createTheme(); return (
} /> {Object.keys(examples).map((label, index) => ( ))}
{this.props.location.pathname !== '/' && (
)}
); } } const StyledExamples = withRouter(withStyles(Examples, styles)); function App() { return ( ); } const container = document.getElementById('app-root'); const root = createRoot(container); root.render();