« first day (3262 days earlier)      last day (1910 days later) » 

finally
 
1 hour later…
13:30
how can I create dropdown menu in react navigation, cant find in the doc
13:58
I am trying to referencea js file in ts file but it does not seem to be working. I am getting error in console. Any clues?
https://stackblitz.com/edit/angular-or3v1z
name of the file : 'myjslib.js'
 
4 hours later…
17:29
Im making a fetch to an API and get an array of objects as a result, can I modify this before adding it to my react state, or do I add it to the state, and then create another state for the modified objects?
1 message moved to Trash can
@Shamaran Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
I did hit format button
1 message moved to Trash can
@Shamaran Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
1 message moved to Trash can
@Shamaran Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
Sorry, but I dont know what u on about, im hitting the format button
{
     category: "Cars",
     question: "Which one is a car?",
     wrong_answers: ["Apple", "Pizza", "Lamp"],
     right_answer: "BMW"
}
there you go
17:35
{
    category:"Cars",
    question:"Which one is a car?",
    answers:[
        {
            answer:"Apple",
            isCorrect:false
        },
        {
            answer:"Pizza",
            isCorrect:false
        },
        {
            answer:"Lamp",
            isCorrect:false
        },
        {
            answer:"BMW",
            isCorrect:true
        }
    ]
}
Nice, thank you :) Had to use an online json formatter for this to work
So, can I modify the incoming data, the first one into looking like the second one before adding it to my state array, or should I create another state and modify it in there instead?
 
2 hours later…
lol ;-)
20:26
its so annoying when sites assume you don't have an account
 
3 hours later…
23:51
Hello all, I noticed JS [code](https://stackoverflow.com/a/58031173/2924577) where the condition in [some()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some) method kept changing while iterating through the array.

Though it is allowed and works, it didn't feel semantically right. What do you think about it? Is is a good practice to do that?

« first day (3262 days earlier)      last day (1910 days later) »