How do I import a react component into Wix?

So - I’m relatively new to Wix as a platform and I have a question.
I have a relatively complicated javascript component written in React.Js that I don’t want to re-write. Tweaking in order to fit within Corvid would be fine. My question is - is there a way to import this or re-work this in Wix without having to heavily re-write it as say, straight up jquery or vanilla js?

Are there any guides on this site on how to include a JSX component in wix? The articles I found all seemed to be stubs that were based on either writing an app (which I don’t want to do - I just want to do this for a single site) or seemed murky.

Thoughts? Resources? Is this something that just isn’t supported with Corvid yet?

Thanks!

1 Like

You can always import it with Wix Fetch.
https://support.wix.com/en/article/corvid-accessing-third-party-services-with-the-fetch-api
https://www.wix.com/corvid/reference/wix-fetch.html

or Wix HTTP Functions.
https://support.wix.com/en/article/corvid-exposing-a-site-api-with-http-functions
https://www.wix.com/corvid/reference/wix-http-functions.html

https://www.wix.com/corvid/forum/corvid-tips-and-updates/example-myapi-and-myapiclient

Or see if you can use it through a nodeJS within Wix Package Manager.
https://support.wix.com/en/article/corvid-managing-external-code-libraries-with-the-package-manager
https://www.wix.com/corvid/forum/corvid-tips-and-updates/you-can-now-use-npm-modules-in-your-code
https://www.wix.com/corvid/npm-modules

Not good enough. Wix has pretty much some nasty hoops to pass through. Since Wix is based in React I would expect to be able to write a JSX component even using hooks rather than the Corvid, jQuery-like syntax and all the limitations imposed in the UI. It takes ages just to call the Google Maps APIs to make come calculations or any other thing that requires a minimum of customisation.