We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db67cde commit 7339757Copy full SHA for 7339757
ReactByPrasadSir/src/components/00_tasks/04_contextApi/01_BasicCounter.jsx
@@ -32,7 +32,7 @@ const BasicCounter = () => {
32
<h1>1. Basic Counter App</h1>
33
<h1 className='text-3xl'>{count}</h1>
34
<div>
35
- <button onClick={decrement} className='border rounded-md text-white bg-blue-600 p-2 hover:bg-blue-700'>Decrement</button>
+ <button onClick={decrement} disabled={count==0?true:false} className='border rounded-md text-white bg-blue-600 p-2 hover:bg-blue-700'>Decrement</button>
36
<button onClick={reset} className='border rounded-md text-white bg-blue-600 p-2 hover:bg-blue-700 mx-5'>Reset</button>
37
<button onClick={increment} className='border rounded-md text-white bg-blue-600 p-2 hover:bg-blue-700'>Increment</button>
38
</div>
0 commit comments