Hi,
I have some JSON posts and comments that I get with axios. I also use Reactjs.useState and I want to put them inside a table. However I want to take the data and put inside different array that combines both of them.
What am I doing wrong?
const [posts, setPosts] = useState([]);
const [comments, setComments] = useState([]);
const [testData, setTestData] = useState([{postBody: null, commentBody: null}]);
posts.map(post => {
comments.map(comment => {