DEV Community

Discussion on: How I built a SaaS with Next.js in a week

Collapse
p19ky profile image
Pinkovai Krisztian

Hello everyone!

First of all, impressive work Randy! very inspiring!

Me and some friends are also looking to build a SaaS.

We have a chatbot component that we opted to build with React.js and Firebase.

Our problem is that currently, the component can only be integrated on websites where React is used.

I would be very happy to hear any of your suggestions on how would you go about making a component, like a chatbot component for instance, so that it can be integrated on websites that use plain JavaScript or Vue.js or any other Frontend Framework/Library, or just plain JavaScript as I said before.

What we thought about is implement all our logic in plain JavaScript but that would be painful since we no longer have the advantages that React gives, such as Side Effects, State Variables and all the cool stuff React offers.

Any suggestions are much appreciated <3

Have a nice one you all!

Collapse
djyde profile image
Randy Author

Hi. In my opinion, Svelte is also a good choice in your case. You can write your component in Svelte, then use the component API (svelte.dev/docs#Creating_a_component), wrap it into Vue/React/Other...

Collapse
p19ky profile image
Pinkovai Krisztian

Hi! Thank you very much for your response.

I might be silly here, but could you elaborate a little bit on this method you just mentioned? I haven't written Svelte Code yet, but I don't think I quite get what you mean by this whole procedure that you just described.

Thread Thread
djyde profile image
Randy Author

This video may help you: youtube.com/watch?v=6MI9mirMh6w

Thread Thread
p19ky profile image
Pinkovai Krisztian

Thank you very much!