- Create a Simple Counter using the given boilerplate.
- Fork this repository.
- Clone the forked app from your github account.
- Copy this repository into your repository of
masai-course
organization, create a folder namedrm101_assign1
in the root of the repo and then copy the repo code in that folder, complete your assignmend and push it to a branch namedrm101_assign1
. - navigate inside the clone repository folder and run following command.
npm install
- To install the dependenciesnpm start
- To Start running the application.
- Once you're done with your assignment, submit the link to
root
of the repository on LMS.
Note - Make sure you use only the given components and dont create new files and folders as chaging component name, structures might result in giving you zero marks
-
The Application Should have a value indicating the current count, initially set to
0
(Zero). -
The Application should have two buttons
- one button to increment the value by 1, whenvever clicked.
- one to decrement the value by 1, whenvever clicked.
- this value should never go below zero.
- disable the button if counter value is zero.
- Do not use Global CSS, instead use
<componentName>.module.css
convention for Css in that file. - Do Not Remove
data-testid="xxxx"
ordata-cy="xxxx"
from anywhere, this are used by testing tools to test your code, removal of this will lead to low score. - Make sure you use only the given components and dont create new files and folders as chaging component name, structures might result in giving you zero marks
- Make sure you use only the given data and dont create new data, as chaging data might result in giving you zero marks