BFE.dev
React Coding Questions1. the React Counter app

1. the React Counter app

React
Share

  - accepted / - tried

As the first React problem, you are asked to create the famous Counter app.

  1. counter starts from 0.
  2. click the '+' button to increment.
  3. click the '-' button to decrement.

data-testid is used to test your code, please do not remove them.

next

Bugfree ordinary solution is better than buggy fancy ones.

SolutionAIPosts(382)

Try it out

Console