Handle Svelte Forms Easily With Actions
Creating forms can be boring… usually in Svelte JS and in general with other frameworks, you have to create the data, process it, validate it, send it, handle the response and also write down the html markup.
<script>
const data = {
user: '',
pass: '',
}
const handleSubmit = (e) => {
axios.post('endpoint', data)
.then(res => {…