ayoayco / McFly

[🚧 PoC] Back to the Basics. Into the Future. 😱
https://mcfly.js.org
MIT License
70 stars 3 forks source link

feat(core): server-render custom elements #33

Closed ayoayco closed 6 months ago

ayoayco commented 9 months ago

Include the HTML of custom elements on the server response so if the browser doesn’t have js enabled they will still see the initial ui.

There are several ways of writing custom elements, and here's a general checklist (we can update during implementation)

Some references that could be useful:

  1. https://stackoverflow.com/questions/494143/creating-a-new-dom-element-from-an-html-string-using-built-in-dom-methods-or-pro#494348
  2. https://web.dev/articles/custom-elements-best-practices
ayoayco commented 6 months ago

Closed this approach as not planned. Will explore different way