You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
794 B
35 lines
794 B
9 years ago
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>Demo</title>
|
||
|
<link rel="stylesheet" href="../index.css" />
|
||
|
<style>
|
||
|
html, body {
|
||
|
height: 100%;
|
||
|
margin: 0;
|
||
|
background: none;
|
||
|
}
|
||
|
{{ style }}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="{{ id }}" class="code-box-demo"></div>
|
||
|
<script>
|
||
|
function require(module) {
|
||
|
if (module === 'react-router') {
|
||
|
return window.ReactRouter;
|
||
|
}
|
||
|
return window.parent[module];
|
||
|
}
|
||
|
|
||
|
var React = require('react');
|
||
|
var ReactDOM = require('react-dom');
|
||
|
var mountNode = document.getElementById('{{ id }}');
|
||
|
</script>
|
||
|
<script src="https://npmcdn.com/react-router/umd/ReactRouter.min.js"></script>
|
||
|
<script>
|
||
|
{{ script }}
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|