-
Notifications
You must be signed in to change notification settings - Fork 926
Can't add attributes to ReactInitJavaScript
script tag
#334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What's an example of attributes you'd like to add, and for what purpose? |
Hey @Daniel15, I managed to just reuse some code from inside ReactInitJavaScript and made my own helper. I'll post it here tomorrow when I'm back at work. I needed to add "nonce" (we're slowly moving to CSP). Cheers! |
I could be wrong, but I don't think "async" would make a difference since it's an inline script. |
You are not wrong :0)
|
We'd like to be able to add extra attributes to the
ReactInitJavaScript
tag:Current output:
<script>ReactStuff()</script>
Possible desired output:
<script nonce="Fo0/B4r">ReactStuff()</script>
If it's a simple case of adding another parameter to the helper, and adding more to the TagBuilder, I'm happy to take a stab at this.
The text was updated successfully, but these errors were encountered: