I am new to react and in below code the rendering is out of order. is getting rendered before the on UI,can you guys help with the issue ?
console.log() statements