Pass the method with corresponding modal names to the buttons and the modals. <button onClick={this.switchModal("modal1")}> Open modal1 </button>
確定! 回上一頁