-
Notifications
You must be signed in to change notification settings - Fork 88
/
umd.html
29 lines (24 loc) · 954 Bytes
/
umd.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
29
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Hello World</title>
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/prop-types@15.6/prop-types.min.js"></script>
<script src="https://unpkg.com/react-spring@4.1.1/dist/react-spring.umd.js"></script>
<script src="https://unpkg.com/react-spring@4.1.1/dist/addons.umd.js"></script>
<script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script>
</head>
<body>
<div id="root"></div>
<script type="text/babel">
ReactDOM.render(
<ReactSpring.Spring config={{ tension: 0, friction: 100 }} from={{ opacity: 0 }} to={{ opacity: 1 }}>
{props => <h1 style={props}>Hello, world!</h1>}
</ReactSpring.Spring>,
document.getElementById('root')
)
</script>
</body>
</html>