Templates should only be responsible for mapping the state to the UI

I’m getting the following error on my console while running the Laravel web application. Here I’m just adding the JS script tag in my Blade file. The application is working fine but the only issue is it also prints a huge error message on the console as well. The error message is as below:

“Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <script>, as they will not be parsed.

.

.

.

</div>

<script>…”

How to get rid of this error, can anybody help me out, please?

PHP Laravel Programming JavaScript
A
@ 27/06/2020
© All right reserved 2026