Accessing an Objects instance constructor for cloning

前端 未结 0 1874
一个人的身影
一个人的身影 2021-01-29 21:50

TLDR: Are there any pitfalls in using this.constructor(props) in a class method to duplicate that class?

I have a use case where defining class models for entities proves

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