Cognizant interview question

Create a button component in React