Hey guys!
I’ve been using Vite for a few months and I’m loving it.
I’m now exploring the idea of exporting a Web Component from a React/Preact Component so I can use it in a WordPress website.
Thing is: I have read some articles with some approaches but none of them are using Vite. And honestly, I really like working with Vite (not very proficient with build tools, though).
So I ask: how would you get a React/Preact component, turn it into a web component, compile, export and then access it in plain HTML?
Any insights are helpful 🙏