glideapps / glide-data-grid

🚀 Glide Data Grid is a no compromise, outrageously react fast data grid with rich rendering, first class accessibility, and full TypeScript support.
https://grid.glideapps.com
MIT License
3.98k stars 288 forks source link

Best Practice for Managing Data in Glide Data Grid: useState vs useRef? #982

Open mango906 opened 2 months ago

mango906 commented 2 months ago

Hello,

When using the glide-data-grid library to render a DataGrid component, which approach is better for managing data: using useState or useRef? Could you also explain why the better approach is preferable?

Thank you.