Yjs React Bindings

Hey all,

Saw that the y-react repo is empty as of right now, and needed some React bindings for a project I’m working on. Decided to write my own, let me know what you think!

Is one of your y-react goals to maintain the same API between primitive types and yType?

I’m not sure what you mean, can you give an example? Currently the useMap and useArray hooks provide the functions used for manipulating YMaps and YArrays, respectively. So useMap provides get, set, and delete, and YArray provides get, insert, delete, splice, etc…


Yes, that’s it, your answer solved my confusion, thank you.

You can take a look at this repo https://github.com/YousefED/reactive-crdt