How to set canvas width and height in React?

后端 未结 0 1421
挽巷
挽巷 2021-01-17 20:43

Although in vanilla js this works fine (I get the width and height which I set):

var canvas = document.createElement(\'canvas\');
canvas.height = 100;
canvas.         


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