Using CloudKit JS for a React web app

Hello, everyone!

I'm currently working in creating a new web app that will replicate the functionalities of an existing iOS and Mac app.

However, since those apps rely on CloudKit to manage all user information, we decided on using CloudKit JS as our backend for our web app. The framework we chose for developing our frontend is React.

The question is, since this documentation only mentions the CloudKit JS usage through a CDN (embedded directly in the HTML file) I wanted to ask:

  • is there a "suggested" method for using CloudKit JS in a React project other than importing the CDN in the main html file?
  • in case not, should we use a "traditional" server to access data like they suggest in this thread?

All your help will be very much appreciated.

Best regards, Eduardo

Post not yet marked as solved Up vote post of egiadans Down vote post of egiadans
366 views