In React, how can I cause anchors to do nothing on click?

前端 未结 7 1495
无人及你
无人及你 2021-01-01 15:51

I have the following html element:

 fields.push()}>Add Email

I need the href attribute so bootstra

7条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-01 16:01

    fields.push()}>Add Email

    In TypeScript href="javascript:void(0);" throws warning, so there any other way to skip that warnings

提交回复
热议问题