Real time collaboration
Built for real-time editing and viewing of Spreadsheets
const App = () => {
const currentUserId = 1
<SheetGrid
users={
[
{
userId: 1,
title: 'Foo bar',
// Active cell that will be highlighted
activeCell: { rowIndex: 2, columnIndex: 3},
// Which sheetID is currently in focus
sheetId: 1
},
{
userId: 2,
title: 'Foo bar',
activeCell: { rowIndex: 2, columnIndex: 3},
sheetId: 1
}
]
}
userId={currentUserId}
/>
}Immer and useSpreadsheetState
Last updated