You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One frustrating aspect of using felte is that while there is documentation, the documentation doesn't seem to show how to create a form from start to finish, suggestions:
Example of using validator & reporter (and more)?
<script>
import { createForm } from 'felte';
const { form } = createForm({
onSubmit: (values) => {
// This should show some kind of example of using fetch to said server instead of just ...
},
})
</script>
<form use:form>
<input type="text" name="email">
<input type="password" name="password">
<button type="submit">Sign In</button>
</form>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
One frustrating aspect of using felte is that while there is documentation, the documentation doesn't seem to show how to create a form from start to finish, suggestions:
Example of using validator & reporter (and more)?
Getting started/submit page
I think it would also be a good idea to show what the 'default handler' sends (I'm aware it is written it uses
method
,action
&enctype
), but showing the "default" fetch might help understand the magic that happens under the code.Such as what is happening inside here:
https://github.com/pablo-abc/felte/blob/2e109f9773de8ba16e8265f2ea4d9cc4ca2a4dd1/packages/core/src/default-submit-handler.ts
Beta Was this translation helpful? Give feedback.
All reactions