Virtusa interview question

Make a button that when clicked will increase a counter using React.