Web / ReactJS Interview questions
Is setState asynchronous?
Yes. setState also has a second parameter that takes a callback function.
this.setState( { nsmr: 'javapedia.net' }, () => console.log('setState has completed and the component has been re-rendered.') )
More Related questions...