jahilldev / component-elements

Create a custom element from any component with these tiny functions (2KB GZipped, ~1KB Brotli). Preact and React currently supported
MIT License
89 stars 7 forks source link

Swap out preact-markup for native HTML parsing #4

Closed jahilldev closed 2 years ago

jahilldev commented 2 years ago

Up until now, to support nested HTML, we've been using preact-markup to parse, and convert that HTML string into VDom nodes.

This is actually quite a simple process, so all of the superfluous features that come with preact-markup are just adding unnecessary weight to the package.

We're now parsing nested HTML ourselves.