This is a starter pack for a React counter app. It is meant as a practice assignment for someone learning the basics of React. It contains a set of tests that checks for the following functionalities:
- A span with the id
countthat displays an initial count of 3 - Three buttons with the class
incrementthat increase the count value. - The buttons each have distinct ids:
i. Button with id #increment1 should increase count by 1 for each click
ii. Button with id #increment5 should increase count by 5 for each click
iii. Button with id #increment10 should increase count by 10 for each click
To begin:
- clone the app to the local drive:
git clone https://github.com/da-liu/counter-starter.git - install dependencies:
cd counter-starter && npm install - start app
npm startin one terminal, and watch for test in another terminalnpm test - edit
App.jsto build the required features and pass all the tests - submit your app to TODO: email or slack channel to get an example solution