Primathon interview question

create a incrementer in react