sigmacomputing / plugin

MIT License
2 stars 1 forks source link

Will there be a vanilla JavaScript version of the plugin? #9

Open NullVoxPopuli opened 1 month ago

NullVoxPopuli commented 1 month ago

I see that the plugin is primarily focused on React, (and forcing it via peers) -- but there is some vanilla JS code within.

Could that code be extracted? or maybe better, could "The plugin" be vanilla JS only, and the react bits be extracted to a plugin-react project?

For example, if I'm using Angular, Vue, or Svelte, I don't really want to have to adopt another stack :sweat_smile:

thanks!

(If ya'll only want to support React, and not frameworkless environments, that's perfectly within ya'lls prerogative, too :heart: )

Pearce-Ropion commented 1 month ago

You should be able to use the framework agnostic API without react. I think we could potentially change the react peer to be optional but that change shouldn't be required for you to use it that way if you are ok with ignoring the peer warning in the meantime.