0

I have a React table like this. Do we have anyway to export this table to CSV file and keep the same structure.

enter image description here

1 Answer 1

1

Yes, but how easy it is really depends on how the underlying state is being stored in your app.

The react-csv package allows you to pass it an array of data and add a Download button to your site, but you first need to arrange/collect the data into the right format for it.

Sign up to request clarification or add additional context in comments.

1 Comment

You're right the important thing of this problem is setting up the data to the right expected format.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.