UNPKG

@astro-utils/forms

Version:

Server component for Astro (call server functions from client side with validation and state management)

13 lines (12 loc) 303 B
export class IHTMLFormPlugin { constructor(form) { this.form = form; this.storage = new Map(); } createValidation() { for (const [key, value] of this.storage) { this.createOneValidation(key, value); this.storage.delete(key); } } }