---
title: "Discussion on \"Take Number from user, Create three Button 'Increment' 'Decrement' 'Reset'  And  Check Number is odd or even and do the Button Funtionality.\" | Hashnode"
description: "Discussion on \"Take Number from user, Create three Button 'Increment' 'Decrement' 'Reset'  And  Check Number is odd or even and do the Button Funtionality.\". import React, { useState } from \"react\";\nimport \"./styles.css\";\nexport default function App() {\n  const [mynum, setMynum] = useState(\"\");\n  return (\n    <div\n      className=\"App\"\n      style={\n        mynum % 2 === 0\n          ? { backgroundColor: \"..."
url: "https://hashnode.com/posts/take-number-from-user-create-three-button-increment-decrement-reset-and-check-number-is-odd-or-even-and-do-the-button-funtionality/618f609e83e4212d6e5780a7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Take Number from user, Create three Button 'Increment' 'Decrement' 'Reset' And Check Number is odd or even and do the Button Funtionality.](https://dhananjaysr26.hashnode.dev/take-number-from-user-create-three-button-increment-decrement-reset-and-check-number-is-odd-or-even-and-do-the-button-funtionality?utm_source=hashnode&utm_medium=feed)

import React, { useState } from "react"; import "./styles.css"; export default function App() { const \[mynum, setMynum\] = useState(""); return ( <div className="App" style={ mynum % 2 === 0 ? { backgroundColor: "...

Nov 13, 2021 · 1 min read · dhananjaysr26.hashnode.dev  
Read the article

-   [#interview](https://hashnode.com/tag/interview)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)

## Written by

[Dhananjay Singh](https://hashnode.com/@dhananjaysr26)

@dhananjaysr26 · Bangalore

  
[View profile](https://hashnode.com/@dhananjaysr26)

Software Developer

I am enthusiastic Developer who love to work on front end whether it is in Web using React or in android using React Native. I am a quick learner and a team player who know how change business requirements to technical solutions.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
