For create counter app challenge, i created two functions (decrease and increase) to be passed instead, later simply calling ....is that inline with best practise?
you got it :)
sure, you can definitely achieve the same outcome in many different ways... to include, a single inline statement. however, over simplifying can cause confusion for your future-self and others. 2 separate functions make more sense IMO.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
For create counter app challenge, i created two functions (decrease and increase) to be passed instead, later simply calling ....is that inline with best practise?
it is and is common in any ReactJS applications
you got it :)
sure, you can definitely achieve the same outcome in many different ways... to include, a single inline statement. however, over simplifying can cause confusion for your future-self and others. 2 separate functions make more sense IMO.