Check out example codes for "keynote Invite multiple users to make edits to the same document:". It will help you in understanding the concepts better.

Code Example 1

keynote Invite multiple users to make edits to the same document: 
Share > collab

Learn ReactJs, React Native from akashmittal.com