Inline Scripts
You can listen for livewire:load and place any JavaScript there.
Last updated
Was this helpful?
You can listen for livewire:load and place any JavaScript there.
Last updated
Was this helpful?
We recommend you use for most of your JavaScript needs, but you can use <script>
tags directly inside your .
Your scripts will be run only once upon the first render of the component. If you need to run a JavaScript function later, you can emit the from the component and listen to it in JavaScript.