Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (34 sloc) 1015 Bytes
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Connect</title>
<link rel="icon" href="data:,">
</head>
<body>
<div id="root">
init
</div>
<script src="https://cdn.jsdelivr.net/npm/react@16.13.1/umd/react.production.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/react-dom@16.13.1/umd/react-dom.production.min.js"></script>
<style>
.text {
font-size: 56px;
background-color: darkolivegreen;
color: white;
padding: 20px;
}
</style>
<script>
fetch('https://www.mocky.io/v2/5e7978932d00009c7318bd13').then(res => res.json()).then(data => {
ReactDOM.render(
React.createElement("div", {
className: "text"
}, data.text),
document.getElementById('root'),
);
})
</script>
</body>
</html>
You can’t perform that action at this time.