javascript - React.js. Error: Invalid value for <path> attribute d -
i want add svg in react component. use coffeescript without jsx:
svg viewbox: '0 0 800 600', path id: 'top' d: 'm300,220 c300,220 520,220 540,220 c740,220 640,540'
and error:
error: invalid value <path> attribute d="m300,220 c300,220 520,220 540,220 c740,220 640,540"
seems reasonable, a cubic bezier defined using c command must have 6 values following it , yet final 1 has 4.
Comments
Post a Comment