Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
anisul-Islam committed Sep 8, 2022
0 parents commit ddf9bb3
Show file tree
Hide file tree
Showing 16 changed files with 29,106 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"env": {
"browser": true,
"es2021": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:prettier/recommended"
],
"overrides": [],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react"],
"rules": { "react/react-in-jsx-scope": "off" }
}
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"semi": true,
"tabWidth": 2,
"printWidth": 100,
"singleQuote": true,
"trailingComma": "none",
"jsxBracketSameLine": true
}
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# React assigment - 2 : Counter App

## Total points = 5

### Purpose of this assignment : Testing students skills on

- useState() hook
- Event Handler
- conditional rendering

### [Click here to see the project demo](https://react-assignment-2-counter-app.netlify.app/)

### Assignment steps:

- part 1: make sure that increment, decrement and reset functionality works (3 points)
- part 2: disable buttons(2 points)

- disable increment button when count value is 5
- disable decrement button when count value is -5
Loading

0 comments on commit ddf9bb3

Please sign in to comment.