React does not update polygons in svg when component is defined outside of function (hooks)

前端 未结 0 1327
小鲜肉
小鲜肉 2021-02-19 10:19

Hello when I want to render an array Polygon inside SVG is works only when the component is defined inside the Component:

This works:

function Polygons() {         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题