Using jQuery with ASP.NET Core Blazor
Today, when you add a
<script> inside any blazor component, the compiler will issue an error “Script tags should not be placed inside components because they cannot be updated dynamically.” Check this issue for more detail.
To fix this issue, you need to move the script tag to the index.html file or another static location. So, the index.html file placed inside
wwwroot/index.html is changed. Like,
Thank you for reading. Keep visiting this blog and share this in your network. Please put your thoughts and feedback in the comments section.