preact-markup
preact-markup copied to clipboard
:zap: Render HTML5 as VDOM, with Components as Custom Elements!
This PR is an attempt to make the component compatible with React. There is still an issue in the `visitor()` function where it uses `nodeName` (Preact read/write) instead of `type`...
Is there a React component that does a similar or even the same thing like `preact-markup`? Or is it possible to use `preact-markup` with React somehow? I don't want to...
Let’s get started with automated dependency management for preact-markup :muscle: This pull request **updates all your dependencies to their latest version**. Having them all up to date really is the...
Leaving out `type="html"` causes [XML parsing](https://github.com/developit/preact-markup/blob/master/src/parse-markup.js#L12-L19), which breaks when the markup contains empty HTML elements that aren’t self-closed, e.g. ``, ``, ``. This is especially problematic if the markup was...
This: ``` 1 2 3 ^ spaces ^ ``` reproduces ``` 123 ^ not ^ ``` problem only found to be occurring with `` tags so far Edit: actually I...
Needed something like this for my use case: https://github.com/matthewmueller/preact-html Let me know if you want to merge efforts! I sorta figured the difference was great enough to have a separate...
The index.d.ts file declaring `class Markup extends Component...` (line 26) should read `declare class Markup extends Component...` Otherwise the newer versions of TS will complain. PR #47 will resolve this.
Hello, I'm facing _"preact-markup: Error: Document parse failed."_ error on passing `""` with type as `html`. `` Observed on preact-markup version 2.1.1. Codesandbox: https://codesandbox.io/s/preact-markup-issue-rjftnj Thanks
We need this to upgrade preact-www