Skip to content

Commit d608760

Browse files
committed
update styled-component example to 16.10.2
1 parent b3d92fa commit d608760

File tree

4 files changed

+20
-19
lines changed

4 files changed

+20
-19
lines changed

examples/styled-components/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"dependencies": {
2424
"babel-polyfill": "^6.26.0",
2525
"emotion": "^8.0.12",
26-
"react": "^16.9.0",
27-
"react-dom": "^16.9.0",
26+
"react": "^16.10.2",
27+
"react-dom": "^16.10.2",
2828
"react-emotion": "^9.2.12",
2929
"react-hot-loader": "^4.6.5",
3030
"react-spring": "^8.0.25",

examples/styled-components/src/Spring.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { animated, useSpring } from 'react-spring';
1+
// import { animated, useSpring } from 'react-spring';
22
import React, { useCallback, useState } from 'react';
33
import Counter from './Counter';
44

@@ -18,7 +18,7 @@ export function SpringTest() {
1818
const [thingDone, toggleThingDone] = useState(false);
1919
const doTheThing = useCallback(() => toggleThingDone(!thingDone), [thingDone]);
2020

21-
const fader = useSpring({ opacity: thingDone ? 1 : 0 });
21+
// const fader = useSpring({ opacity: thingDone ? 1 : 0 });
2222

2323
const v = React.useContext(context);
2424

@@ -31,7 +31,7 @@ export function SpringTest() {
3131
<context.Provider value="test2">
3232
<Test />
3333
</context.Provider>
34-
<animated.h1 style={fader}>You did the thing!</animated.h1>
34+
{/*<animated.h1 style={fader}>You did the thing!</animated.h1>*/}
3535
<button type="button" onClick={doTheThing}>
3636
{thingDone ? 'Undo The Thing' : 'Do The Thing'}
3737
</button>

examples/styled-components/src/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import 'react-lifecycles-compat';
2-
import 'babel-polyfill';
2+
import 'core-js/modules/es6.promise';
3+
// import 'babel-polyfill';
34
import React from 'react';
45
import { render } from 'react-dom';
56
import App from './App';

examples/styled-components/yarn.lock

+13-13
Original file line numberDiff line numberDiff line change
@@ -4250,15 +4250,15 @@ rc@^1.2.7:
42504250
minimist "^1.2.0"
42514251
strip-json-comments "~2.0.1"
42524252

4253-
react-dom@^16.9.0:
4254-
version "16.9.0"
4255-
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.9.0.tgz#5e65527a5e26f22ae3701131bcccaee9fb0d3962"
4256-
integrity sha512-YFT2rxO9hM70ewk9jq0y6sQk8cL02xm4+IzYBz75CQGlClQQ1Bxq0nhHF6OtSbit+AIahujJgb/CPRibFkMNJQ==
4253+
react-dom@^16.10.2:
4254+
version "16.10.2"
4255+
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.10.2.tgz#4840bce5409176bc3a1f2bd8cb10b92db452fda6"
4256+
integrity sha512-kWGDcH3ItJK4+6Pl9DZB16BXYAZyrYQItU4OMy0jAkv5aNqc+mAKb4TpFtAteI6TJZu+9ZlNhaeNQSVQDHJzkw==
42574257
dependencies:
42584258
loose-envify "^1.1.0"
42594259
object-assign "^4.1.1"
42604260
prop-types "^15.6.2"
4261-
scheduler "^0.15.0"
4261+
scheduler "^0.16.2"
42624262

42634263
react-emotion@^9.2.12:
42644264
version "9.2.12"
@@ -4306,10 +4306,10 @@ react-spring@^8.0.25:
43064306
"@babel/runtime" "^7.3.1"
43074307
prop-types "^15.5.8"
43084308

4309-
react@^16.9.0:
4310-
version "16.9.0"
4311-
resolved "https://registry.yarnpkg.com/react/-/react-16.9.0.tgz#40ba2f9af13bc1a38d75dbf2f4359a5185c4f7aa"
4312-
integrity sha512-+7LQnFBwkiw+BobzOF6N//BdoNw0ouwmSJTEm9cglOOmsg/TMiFHZLe2sEoN5M7LgJTj9oHH0gxklfnQe66S1w==
4309+
react@^16.10.2:
4310+
version "16.10.2"
4311+
resolved "https://registry.yarnpkg.com/react/-/react-16.10.2.tgz#a5ede5cdd5c536f745173c8da47bda64797a4cf0"
4312+
integrity sha512-MFVIq0DpIhrHFyqLU0S3+4dIcBhhOvBE8bJ/5kHPVOVaGdo0KuiQzpcjCPsf585WvhypqtrMILyoE2th6dT+Lw==
43134313
dependencies:
43144314
loose-envify "^1.1.0"
43154315
object-assign "^4.1.1"
@@ -4555,10 +4555,10 @@ sax@^1.2.4:
45554555
resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9"
45564556
integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==
45574557

4558-
scheduler@^0.15.0:
4559-
version "0.15.0"
4560-
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.15.0.tgz#6bfcf80ff850b280fed4aeecc6513bc0b4f17f8e"
4561-
integrity sha512-xAefmSfN6jqAa7Kuq7LIJY0bwAPG3xlCj0HMEBQk1lxYiDKZscY2xJ5U/61ZTrYbmNQbXa+gc7czPkVo11tnCg==
4558+
scheduler@^0.16.2:
4559+
version "0.16.2"
4560+
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.16.2.tgz#f74cd9d33eff6fc554edfb79864868e4819132c1"
4561+
integrity sha512-BqYVWqwz6s1wZMhjFvLfVR5WXP7ZY32M/wYPo04CcuPM7XZEbV2TBNW7Z0UkguPTl0dWMA59VbNXxK6q+pHItg==
45624562
dependencies:
45634563
loose-envify "^1.1.0"
45644564
object-assign "^4.1.1"

0 commit comments

Comments
 (0)