React Table Column Header Data
I am trying to create a Jeopardy app using React and React Table and I am stuck. I am trying to get the column headers to get filled in with the actual name of the category from the jeopardy API. The object fetched from the API looks like this: "id": 11111, "title": "papers", "clues_count": 5, "clues": where the title is the name of the category. That request is made 6 times, once for each column. Right now I have "category x" hardcoded as the value of the header for each column. I can't figure out how to get the title as the column header. My code is below (I know it's messy and needs refacto
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.