Cognizant interview question

Pure component vs component in react