Closed mweidner037 closed 1 year ago
CollabEventsRecord.Any
to ref React hooksI have a draft of a useCollab
hook and a CollabsTextInput
component in https://github.com/mweidner037/fileshare-recipe-editor/ . I think I will just copy these over as a new @collabs/react package.
I'll also the frontend of that demo to the monorepo's demo folder, so we can test the react package. We can also demo hiding the display until the WebSocketNetwork "Load" event (with a comment that you'd usually instead wait for IndexedDBDocStore, so you can load even offline).
CollabsTextInput
improvements:
e.preventDefault()
.Cursor
s.)
Draft here: https://github.com/mweidner037/fileshare-recipe-editor/tree/master/src/renderer/script/collabs-react