Accessing 'this' in jsx element

后端 未结 0 1607
有刺的猬
有刺的猬 2020-12-11 18:59

I have an issue where I need to access a jsx element\'s id in the className prop. Something like:

//

${object[${this.id}] &&a
相关标签:
回答
  • 消灭零回复
提交回复
热议问题