BFE.dev
React 代码题1. the React Counter app

1. the React Counter app

React
分享给更多人

  -通过 / -执行

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.

下一个

始终思考更好的解决办法

解答AI讨论(382)

Try it out

Console