I'm trying to add this <script>
tag to my React code:
<script
src="mySource"
sp-form-id="LongString"
/>
but when I check the elements the sp-form-id
attribute is not there:
And it shows me this error:
index.js:2177 Warning: Unknown prop `sp-form-id` on <script> tag. Remove this prop from the element.
But, as fas as I know, with React 16 this wouldn't be an issue, it should still add the custom prop.
How do I add that attribute to the <script>
tag?