este es mi código en componentDidMount () {} Estoy tratando de inicializar la ventana emergente del widget en la carga de la página y luego configurar el nombre y el correo electrónico de los parámetros recibidos de la página anterior
const fullName = this.state.data[0]; console.log(fullName); const email = this.state.data[1]; const hashCode = this.state.data[2]; if (window.Tawk_API) { window.Tawk_API = window.Tawk_API || {}; window.Tawk_LoadStart = new Date(); window.Tawk_API.onLoad = function () { window.Tawk_API.setAttributes( { name: `${fullName}`, email: `${email}`, hash: `${hashCode}`, }, function (error) {} ); }; } const tawk = document.getElementById("tawkId"); if (tawk) { return window.Tawk_API; } const script = document.createElement("script"); script.type = "text/javascript"; script.id = "tawkId"; script.async = true; script.setAttribute("crossorigin", "*"); script.charset = "UTF-8"; script.src = "https://embed.tawk.to/{id}/{id}"; document.head.appendChild(script); const s0 = document.getElementsByTagName("script")[0]; if (s0 || s0.parentNode) { s0.parentNode.insertBefore(script, s0); }Creo que puedes publicar por elemento.