Last active
January 26, 2019 16:08
-
-
Save swederik/7e29d70167708dce5ebde8d85d55bb73 to your computer and use it in GitHub Desktop.
Static site usage of react-viewerbase
This file contains 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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<meta name="theme-color" content="#000000"> | |
<title>react-viewerbase</title> | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha256-eZrrJcwDc/3uDhsdt61sL2oOBY362qM3lon1gyExkL0=" crossorigin="anonymous" /> | |
</head> | |
<body> | |
<noscript> | |
You need to enable JavaScript to run this app. | |
</noscript> | |
<div id="root"></div> | |
<script src="https://unpkg.com/react@16/umd/react.development.js" crossorigin></script> | |
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js" crossorigin></script> | |
<script> | |
'use strict'; | |
var process = { | |
"env": { | |
"NODE_ENV": "production" | |
} | |
}; | |
window.process = process; | |
</script> | |
<!--<script src='node_modules/react-viewerbase/dist/index.js'></script>!--> | |
<script src='https://unpkg.com/react-viewerbase/dist/index.js'></script> | |
<script> | |
'use strict'; | |
var CineDialog = window['react-viewerbase'].CineDialog | |
var props = {}; | |
var app = React.createElement(CineDialog, props, null); | |
ReactDOM.render(app, document.getElementById('root')); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment