React Integration¶
Collabs is agnostic about what UI framework you use, but it should work fine with React.
The @collabs/react package provides tools to make this easier:
useCollab, a React hook that triggers a rerender whenever
collab
’s state changes (specifically, when it emits an event).CollabsTextInput, a wrapper around
<input type="text" />
with built-in Collabs sync.
Examples¶
For examples using React, see the source code of our recipe editor demo.
Next Steps¶
Finish the guide with Gotchas.