reactabular / easy

Easy, opinionated wrapper for Reactabular (MIT)
https://www.npmjs.com/package/reactabular-easy
MIT License
3 stars 3 forks source link

Components can't be passed through props since the defaults come after the prop in the object spread #4

Open dtaub opened 7 years ago

dtaub commented 7 years ago

Should ...components be on the bottom?

    const tableComponents = {
      ...components,
      body: {
        wrapper: Virtualized.BodyWrapper,
        row: dnd.draggableRow(Virtualized.BodyRow)
      }
    };

Mainly I just want to override shouldComponentUpdate(). Is there any easier way to do that?

bebraw commented 7 years ago

The order could be changed, yeah. The potential problem is that if you override either wrapper or row, then it may break functionality.