share a state across multiple elements in a map

后端 未结 0 1121
小鲜肉
小鲜肉 2020-12-03 03:23

I have an array of elements that are drawn on a canvas.

export function useCanvas(){
    const canvasRef = useRef(null);
    const [ elements, setElements] =          


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