File tree Expand file tree Collapse file tree 1 file changed +34
-36
lines changed Expand file tree Collapse file tree 1 file changed +34
-36
lines changed Original file line number Diff line number Diff line change @@ -3,42 +3,40 @@ import React, { Component } from 'react';
33import ReactDOM from 'react-dom' ;
44import { Circle } from 'rc-progress' ;
55
6- class Example extends Component {
7- render ( ) {
8- const circleContainerStyle = {
9- width : '250px' ,
10- height : '250px' ,
11- display : 'inline-block' ,
12- } ;
13- return (
14- < div >
15- < h3 > Circle Progress { 90 } %</ h3 >
16- < div style = { circleContainerStyle } >
17- < Circle
18- percent = { 90 }
19- strokeWidth = "6"
20- strokeLinecap = "round"
21- strokeColor = { {
22- '0%' : '#108ee9' ,
23- '100%' : '#87d068' ,
24- } }
25- />
26- </ div >
27- < h3 > Circle Progress { 100 } %</ h3 >
28- < div style = { circleContainerStyle } >
29- < Circle
30- percent = { 100 }
31- strokeWidth = "6"
32- strokeLinecap = "round"
33- strokeColor = { {
34- '100%' : '#87d068' ,
35- '0%' : '#108ee9' ,
36- } }
37- />
38- </ div >
6+ const Example = ( ) => {
7+ const circleContainerStyle = {
8+ width : '250px' ,
9+ height : '250px' ,
10+ display : 'inline-block' ,
11+ } ;
12+ return (
13+ < div >
14+ < h3 > Circle Progress { 90 } %</ h3 >
15+ < div style = { circleContainerStyle } >
16+ < Circle
17+ percent = { 90 }
18+ strokeWidth = "6"
19+ strokeLinecap = "round"
20+ strokeColor = { {
21+ '0%' : '#108ee9' ,
22+ '100%' : '#87d068' ,
23+ } }
24+ />
3925 </ div >
40- ) ;
41- }
42- }
26+ < h3 > Circle Progress { 100 } %</ h3 >
27+ < div style = { circleContainerStyle } >
28+ < Circle
29+ percent = { 100 }
30+ strokeWidth = "6"
31+ strokeLinecap = "round"
32+ strokeColor = { {
33+ '100%' : '#87d068' ,
34+ '0%' : '#108ee9' ,
35+ } }
36+ />
37+ </ div >
38+ </ div >
39+ ) ;
40+ } ;
4341
4442ReactDOM . render ( < Example /> , document . getElementById ( '__react-content' ) ) ;
You can’t perform that action at this time.
0 commit comments