Home > Blockchain >  Can we use Ionic with vanilla JavaScript?
Can we use Ionic with vanilla JavaScript?

Time:09-08

Hi Everyone! A very basic question, I wanted to ask if we could use Ionic framework with the vanilla Javascript without using any framework like react, angular or vue? If yes please describe. Thank You!

CodePudding user response:

In short: Yes, in the same as way you can use wordpress.

According to the official documentation:

One of the main goals with moving Ionic to Web Components was to remove any hard requirement on a single framework to host the components. This made it possible for the core components to work standalone in a web page with just a script tag. While working with frameworks can be great for larger teams and larger apps, it is now possible to use Ionic as a standalone library in a single page even in a context like WordPress.

CodePudding user response:

yes, you can build Ionic apps using VanillaJS or take advantage of Vue, React or Angular or Stencil

all components documentation available for JavaScript it's recommended to use React or Vue,... for large scale application but if you want use plain JS it's available.

From Ionic framework documentation:

One of the main goals with moving Ionic to Web Components was to remove any hard requirement on a single framework to host the components. This made it possible for the core components to work standalone in a web page with just a script tag

  • Related