axodotdev / axodotdev/axohtml

Events? Events!

Open
#19 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
119
Forks
10
PR merge metrics
No merged PRs in 30d

Description

Currently, this package does not appear to handle events. Right now that doesn't matter — generated Oranda pages do not need fancy event listeners. What will we do when we want things, like interactive widgets?

It seems doing a straight inline event registration on the HTML attribute is not great. (See: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Events#inline_event_handlers_%E2%80%94_dont_use_these)

Will we choose to feed vnode trees into the vDOM library of our choice? Find a way to register and dispatch events ourselves (https://the-guild.dev/blog/react-dom-event-handling-system)? Confine most interactive bits to the Axo dashboard (Sunfish) and add a little bit of script for the rest? Is this a case for Web Components?! We don't know, but we should think about it!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.