//送信データ(JSON) const payload = { text: "問い合わせ\n" + "名前: " + name + "\n" + "email: " + email + "\n" + "内容: " + description } const url = "WebHook URL" fetch(url,{ method: "POST", body: JSON.stringify(payload) }).then(() => { alert("送信完了") this.setState({ name: "", email: "", description: "" }) return this.props.handleClose() })