-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
28 lines (25 loc) · 930 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Pure Styled</title>
<script src="https://unpkg.com/react@16.13.1/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16.13.1/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/react-is@16.13.1/umd/react-is.development.js"></script>
<script src="https://unpkg.com/styled-components@5.1.0/dist/styled-components.js"></script>
</head>
<body>
<div id="stage"></div>
<script>
const e = React.createElement;
const Button = styled.button({
backgroundColor: "red",
color: "green",
borderColor: "blue",
});
const App = e("div", {}, [e(Button, {}, "Click me")]);
ReactDOM.render(App, document.querySelector("#stage"));
</script>
</body>
</html>