LIVE DEMO :- EVEN ODD Random Increment
In this assignment let's build a Even Odd App
- Extra Small (Size < 576px), Small (Size >= 576px)
- Medium (Size >= 768px), Large (Size >= 992px) and Extra Large (Size >= 1200px)
- Download dependencies by running
npm install
- Start up the app using
npm start
The app must have the following functionalities
-
When the page is opened the HTML heading element should have Count 0 as text content and the first HTML paragraph element should have Count is Even as text content initially.
-
When the Increment button is clicked
- The count should be increased by a random number between 0 to 100.
- If the count is an even number and text content of HTML paragraph element should be Count is Even.
- If the count is an odd number and text content of HTML paragraph element should be Count is Odd.
-
core code files
src/components/EvenOddApp/index.js
src/components/EvenOddApp/index.css
- Roboto