Skip to content

Commit

Permalink
update styled-component example to 16.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey committed Oct 8, 2019
1 parent b3d92fa commit d608760
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 19 deletions.
4 changes: 2 additions & 2 deletions examples/styled-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"dependencies": {
"babel-polyfill": "^6.26.0",
"emotion": "^8.0.12",
"react": "^16.9.0",
"react-dom": "^16.9.0",
"react": "^16.10.2",
"react-dom": "^16.10.2",
"react-emotion": "^9.2.12",
"react-hot-loader": "^4.6.5",
"react-spring": "^8.0.25",
Expand Down
6 changes: 3 additions & 3 deletions examples/styled-components/src/Spring.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { animated, useSpring } from 'react-spring';
// import { animated, useSpring } from 'react-spring';
import React, { useCallback, useState } from 'react';
import Counter from './Counter';

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

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

const v = React.useContext(context);

Expand All @@ -31,7 +31,7 @@ export function SpringTest() {
<context.Provider value="test2">
<Test />
</context.Provider>
<animated.h1 style={fader}>You did the thing!</animated.h1>
{/*<animated.h1 style={fader}>You did the thing!</animated.h1>*/}
<button type="button" onClick={doTheThing}>
{thingDone ? 'Undo The Thing' : 'Do The Thing'}
</button>
Expand Down
3 changes: 2 additions & 1 deletion examples/styled-components/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'react-lifecycles-compat';
import 'babel-polyfill';
import 'core-js/modules/es6.promise';
// import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import App from './App';
Expand Down
26 changes: 13 additions & 13 deletions examples/styled-components/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4250,15 +4250,15 @@ rc@^1.2.7:
minimist "^1.2.0"
strip-json-comments "~2.0.1"

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

react-emotion@^9.2.12:
version "9.2.12"
Expand Down Expand Up @@ -4306,10 +4306,10 @@ react-spring@^8.0.25:
"@babel/runtime" "^7.3.1"
prop-types "^15.5.8"

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

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

0 comments on commit d608760

Please sign in to comment.