About 117,000 results
Open links in new tab
  1. reactjs - Understanding the logic behind a simple calculator, …

    Dec 8, 2021 · So I'm trying to make a simple calculator with only 5 buttons: - '0'. The idea is to make it work like a proper calculator (after I figure out this logic I would make a normal …

  2. How to Create a Simple Calculator Application Using the useState …

    Mar 10, 2023 · The useState hook is a powerful feature of React that allows us to add state to functional components. With the useState hook, we can create a simple calculator application …

  3. javascript - React state with calculated fields - Stack Overflow

    If you are using React 16.8.0 and above, you can use React hooks API. I think it's useMemo() hook you might need. For example: import React, { useMemo } from 'react' const …

  4. Developing a React Calculator: using state hook - Medium

    Feb 15, 2023 · const [num1, setNum1] = useState(0); const [num2, setNum2] = useState(0); const [operator, setOperator] = useState('+'); const [result, setResult] = useState(0); const …

  5. GitHub - Farruxh/React-based-calculator: A basic React-based calculator

    This calculator app is a simple React-based project demonstrating: Basic React component structure. Usage of useState for state management. Passing props and functions between …

  6. React Calculator: Building Basic Arithmetic Operations with User ...

    Oct 24, 2023 · Step 2: Building the Calculator Component. In the Calculator.jsx file, the Calculator functional component is defined. It utilizes React hooks, specifically the useState hook, to …

  7. reactjs - React Hooks: Is there a way to calculate state values …

    Jun 20, 2019 · I'm looking for a way to calculate state values which depend on other state values using React Hooks. I'm familiarizing myself with React Hooks. So far I've been using useState …

  8. Build a Calculator App using useState Hook in React JS | React JS ...

    In this video, We'll See How to Build a Calculator App in React JS using useState Hook. This is one of the best React JS projects for Beginners.

  9. React useState hook: Complete guide and tutorial | Contentful

    5 days ago · The React useState hook adds a state variable to a function component. Setting a state variable gives your component the ability to remember things across page re-renders, so …

  10. Calculator using React.js (Only Functional Component and

    React provides flexible way to maintain stability between components and state along with various other features. As of that I have created a basic calculator application that uses only functional...

  11. Some results have been removed
Refresh