File tree 4 files changed +20
-19
lines changed
examples/styled-components
4 files changed +20
-19
lines changed Original file line number Diff line number Diff line change 23
23
"dependencies" : {
24
24
"babel-polyfill" : " ^6.26.0" ,
25
25
"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 " ,
28
28
"react-emotion" : " ^9.2.12" ,
29
29
"react-hot-loader" : " ^4.6.5" ,
30
30
"react-spring" : " ^8.0.25" ,
Original file line number Diff line number Diff line change 1
- import { animated , useSpring } from 'react-spring' ;
1
+ // import { animated, useSpring } from 'react-spring';
2
2
import React , { useCallback , useState } from 'react' ;
3
3
import Counter from './Counter' ;
4
4
@@ -18,7 +18,7 @@ export function SpringTest() {
18
18
const [ thingDone , toggleThingDone ] = useState ( false ) ;
19
19
const doTheThing = useCallback ( ( ) => toggleThingDone ( ! thingDone ) , [ thingDone ] ) ;
20
20
21
- const fader = useSpring ( { opacity : thingDone ? 1 : 0 } ) ;
21
+ // const fader = useSpring({ opacity: thingDone ? 1 : 0 });
22
22
23
23
const v = React . useContext ( context ) ;
24
24
@@ -31,7 +31,7 @@ export function SpringTest() {
31
31
< context . Provider value = "test2" >
32
32
< Test />
33
33
</ context . Provider >
34
- < animated . h1 style = { fader } > You did the thing!</ animated . h1 >
34
+ { /* <animated.h1 style={fader}>You did the thing!</animated.h1>*/ }
35
35
< button type = "button" onClick = { doTheThing } >
36
36
{ thingDone ? 'Undo The Thing' : 'Do The Thing' }
37
37
</ button >
Original file line number Diff line number Diff line change 1
1
import 'react-lifecycles-compat' ;
2
- import 'babel-polyfill' ;
2
+ import 'core-js/modules/es6.promise' ;
3
+ // import 'babel-polyfill';
3
4
import React from 'react' ;
4
5
import { render } from 'react-dom' ;
5
6
import App from './App' ;
Original file line number Diff line number Diff line change @@ -4250,15 +4250,15 @@ rc@^1.2.7:
4250
4250
minimist "^1.2.0"
4251
4251
strip-json-comments "~2.0.1"
4252
4252
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 ==
4257
4257
dependencies :
4258
4258
loose-envify "^1.1.0"
4259
4259
object-assign "^4.1.1"
4260
4260
prop-types "^15.6.2"
4261
- scheduler "^0.15.0 "
4261
+ scheduler "^0.16.2 "
4262
4262
4263
4263
react-emotion@^9.2.12 :
4264
4264
version "9.2.12"
@@ -4306,10 +4306,10 @@ react-spring@^8.0.25:
4306
4306
" @babel/runtime" " ^7.3.1"
4307
4307
prop-types "^15.5.8"
4308
4308
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 ==
4313
4313
dependencies :
4314
4314
loose-envify "^1.1.0"
4315
4315
object-assign "^4.1.1"
@@ -4555,10 +4555,10 @@ sax@^1.2.4:
4555
4555
resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9"
4556
4556
integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==
4557
4557
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 ==
4562
4562
dependencies :
4563
4563
loose-envify "^1.1.0"
4564
4564
object-assign "^4.1.1"
You can’t perform that action at this time.
0 commit comments