nadbm / react-datasheet

Excel-like data grid (table) component for React
https://nadbm.github.io/react-datasheet/
MIT License
5.39k stars 457 forks source link

How do I initialize a datasheet with empty columns and rows which fills up my container? #310

Open vanshreddy opened 2 years ago

vanshreddy commented 2 years ago

I have looked around alot but could not find the solution even in the documentation

nadbm commented 2 years ago

Sorry @nick318, this repo is not really maintained but for whoever finds this:

You need to initialize empty data matrix and pass it on to the data field

      <ReactDataSheet
        data={ [["",""],["",""]]} />