Message from JavaScript discussions

April 2019

— I am updating the state of the react state. Immediately after calling "setState" method, I am calling another method that use the updated state value. But as this.setState takes some time to update the value state value. I am accessing the same state in the function called instead of the updated one. So, I tired to set a promise to setState method so that I can specify a callback when the state is updated. So, how to do it ? any help ?

Message permanent page

— 

Noooooo, you can send a callback function as 2d parameter of the setState method. There you access to the updated value

— Wow thanks

— Hi. Can someone help me with one project ? Need to create JSON data visualization into chart with loop

Message permanent page

— Data sorted by I'd and filtering

— Please PM me

— Who still uses jQuery

— Those who do not know js or those who need to support old browsers

— Which js framework is popular now

— Vue.js

— Why

— Cos it's Lightweight nd easy to learn