1class ProgressRing extends React.Component {
2 constructor(props) {
3 super(props);
4
5 const { radius, stroke } = this.props;
6
7 this.normalizedRadius = radius - stroke * 2;
8 this.circumference = this.normalizedRadius * 2 * Math.PI;
9 }
10}