DEV Community

Cover image for Add S.N(Serial Number)/Extra Column in React-Tables V7.
Saroj Pradhan
Saroj Pradhan

Posted on • Updated on

Add S.N(Serial Number)/Extra Column in React-Tables V7.

Q. Who is this article for?

  • For those have used React-Tables and are stuck while adding S.N or extra column in React-Tables.

Here,

const fields = ['s.n', 'title', 'url', 'state'];
Enter fullscreen mode Exit fullscreen mode

If columns are fetched from backend/api and you want to add the "S.N" column then

const columnFields = ['s.n'];
columnFields.push(...fields);
Enter fullscreen mode Exit fullscreen mode

View More and detail at this link Blazecodes.com

Top comments (0)