Re:Show HN: Brisa Framework launch is here | The Web Platfor...
by aralroca on Sunday October 06, 2024 @10:17AM
(#41757327)
The fun thing is that the web components' events can also be captured on the server as Server Action. This way, inside the Web Component, is client code that can validate and call onAfterValidateForm, but then when you consume the WC with <web-component onAfterValidateForm={/* */} /> from your page, it is a server action and finish processing. The mental model is simpler, if it's in a server component, it's a server action, if it's inside a web component, it's a normal browser event. No magic.
[ Parent
| on HN ]
There are no comments on this comment yet.