Created
November 13, 2018 07:31
-
-
Save ProfAndreaPollini/07a13358824cb3ec04f867825fba04a5 to your computer and use it in GitHub Desktop.
REACT START IN THE BROWSER
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Page Title</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" type="text/css" media="screen" href="main.css" /> | |
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script> | |
<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script> | |
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script> | |
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" /> | |
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> | |
<script src="https://unpkg.com/@material-ui/core/umd/material-ui.development.js" crossorigin="anonymous"></script> | |
<script src="main.js" type="text/babel"></script> | |
</head> | |
<body> | |
<div id="app"></div> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { | |
Button, | |
colors, | |
createMuiTheme, | |
CssBaseline, | |
Dialog, | |
DialogActions, | |
DialogContent, | |
DialogContentText, | |
DialogTitle, | |
Icon, | |
MuiThemeProvider, | |
Typography, | |
withStyles | |
} = window['material-ui']; | |
class App extends React.Component { | |
render() { | |
return <Button>test</Button>; | |
} | |
} | |
ReactDOM.render(<App />, document.getElementById('app')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment