Hello everyone, i have one questiion for you. I am new to livewire and i am still beginner programmer. Can you anyone please give me advice how to implement back to top of website button in livewire layout app main component. Iam building almost static website in it and i dont understand how to implement it into main component. If i should make stand alone component like "back to top button" or if i should create code for this riight into main app blade component through with tag. Every section is included in one page.
A Back to Top feature does not require Livewire, or Javascript; you can link to the navbar (or anything at the top of the document) once it has an id you can reference. If you would like, you can add smooth scrolling using CSS: