Skip to content

Commit

Permalink
docs: edit examples and docs in readme fp-124
Browse files Browse the repository at this point in the history
  • Loading branch information
what1s1ove committed Dec 17, 2023
1 parent 472f06b commit f06e4f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ npm install form-payload

## Demo

The library works perfectly with any framework. Just use a valid [HTMLFormElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement) and [form elements](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/elements). The same applies to validations and any other libraries. Create your own wrappers on top of the functions exported by **form-payload** library.
The library works perfectly with any framework. Just use a valid [HTMLFormElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement) and [form elements](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/elements). If you want to add validation or any other functionality, create wrappers on top of the exported functions from the **form-payload** library.

- [Pure JavaScript](https://stackblitz.com/edit/form-payload-javascript?file=index.js)
- [TypeScript + Validation](https://stackblitz.com/edit/form-payload-typescript?file=index.ts,get-form-payload.ts)
Expand Down Expand Up @@ -55,6 +55,7 @@ The library works perfectly with any framework. Just use a valid [HTMLFormElemen
// ✅ ideal
const file = getFormControlPayload(evt.target);
// => File or null
});
mailingFormNode.addEventListener('input', (evt) => {
Expand Down

0 comments on commit f06e4f5

Please sign in to comment.