import React from 'react' ; export default class ChipCheckmark extends React . Component < { } , { } > { width : number = 0 ; init = ( element ) => { if ( ! element ) { return ; } this . width = element . getBoundingClientRect ( ) . height ; } ; render ( ) { return ( < div className = 'mdc-chip__checkmark' ref = { this . init } > < svg className = 'mdc-chip__checkmark-svg' viewBox = '-2 -3 30 30' focusable = 'false' > < path className = 'mdc-chip__checkmark-path' fill = 'none' stroke = 'black' d = 'M1.73,12.91 8.1,19.28 22.79,4.59' / > < /svg> < /div>); } }