File tree Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,10 @@ import ReactDOM from 'react-dom';
33import Loader from 'uielements/loader/loader.component' ;
44const App = React . lazy ( ( ) => import ( './src/app' ) ) ;
55
6- ReactDOM . render ( < Suspense fallback = { < Loader /> } > < App /> </ Suspense > , document . getElementById ( 'root' ) ) ;
6+ const Index = ( ) => (
7+ < Suspense fallback = { < Loader /> } >
8+ < App />
9+ </ Suspense >
10+ ) ;
11+
12+ ReactDOM . render ( < Index /> , document . getElementById ( 'root' ) ) ;
Original file line number Diff line number Diff line change 55 "main" : " index.js" ,
66 "scripts" : {
77 "build" : " webpack ---config ./config/webpack.prod.config.js" ,
8- "dev" : " webpack-dev-server --config ./config/webpack.dev.config.js" ,
8+ "dev" : " webpack-dev-server --config ./config/webpack.dev.config.js --open " ,
99 "lint" : " ./node_modules/.bin/eslint --ext .js,.jsx src/" ,
1010 "test" : " jest --collect-coverage" ,
1111 "test:watch" : " jest --watch"
Original file line number Diff line number Diff line change @@ -20,9 +20,23 @@ body {
2020
2121 .App--Image {
2222 height : 200px ;
23+ animation : rotation 10s infinite linear ;
24+ -webkit-animation :rotation 10s infinite linear ;
2325 }
2426
2527 .App--Title {
2628 font-size : 2rem ;
2729 }
2830}
31+
32+ @keyframes rotation {
33+ from {
34+ -webkit-transform :rotate (0deg );
35+ transform : rotate (0deg );
36+ }
37+ to {
38+ -webkit-transform :rotate (359deg );
39+ transform : rotate (359deg );
40+ }
41+ }
42+
You can’t perform that action at this time.
0 commit comments