« first day (3100 days earlier)      last day (1017 days later) » 

02:04
1 message moved from JavaScript
 
6 hours later…
 
2 hours later…
 
5 hours later…
 
1 hour later…
 
2 hours later…
19:04
    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 => {
Tim
Tim
19:58
1 message moved from Android
 
1 hour later…

« first day (3100 days earlier)      last day (1017 days later) »