DEV Community

Discussion on: Using Svelte.js with Laravel Part 2: Make Svelte scaffold in Laravel 6

Collapse
 
pkumaravk profile image
pkumaravk

Inserting the script tag in the

element inserts the component in the code ?

i thought to insert the component we need to add in the body tag.

Collapse
 
shuv1824 profile image
Shah Nawaz Shuvo

The JavaScript code inside the js/app.js file will automatically mount the App component in the <body>