Showing 2 posts by,

Kelvin De Moya

You may or may not know this already, but you can follow a functional approach when using React's setState(), We usually update our state just passing an object describing the changes we would like to make and let React assign those values and trigger an update, but... But... how? You can pass a function to setState() that takes state and props as params and returns your desired state, which React will use for the update. You can go from: // Incr [...]

It was a normal week day when I decided to apply for a software development talk at my Alma Mater (Pontificia Universidad Católica Madre y Maestra – Santiago, Dominican Republic), not much went through my head at the moment other than that it would be nice to meet the new generation of CS students and serve as a bridge between what they are learning versus real world execution. While I was preparing for my talk a dreadful thought came to my mind: [...]