Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70440

Ionic preact, ion-button or IonButton?

$
0
0

@lhk wrote:

After stumbling over the lack of interop between react and web components, I’m now seriously considering to move to preact (or even vue, but there I have no experience yet).

As far as I understand, this should be pretty much seamless. Ionic components are web components and preact should be compatible.

After searching the forums, I found this thread : @ionic/react has issues with Preact + preact/compat, @ionic/preact?

Apparently when using more complicated components, like IonModal, there are problems.

But what surprises me is, why use the react components at all?
Won’t they try to set up specifically react virtual dom entries?
And the react system of virtual events is incompatible with the dom, and preact, right ?

So I thought the right way to go would be to do import "@ionic/core" and then to use elements like .

After searching the web, I found this demo project https://github.com/elylucas/ionic-preact-app
It also uses the react components.

Is ionic ready for usage with preact?
Basically I would only want to use the neat library of Ionic components and the ionic cli to bundle to capacitor.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70440

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>