mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 01:13:58 +08:00
35 lines
794 B
HTML
35 lines
794 B
HTML
<!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>
|