About 361,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. 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 …

  6. 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.

  7. React Tutorial: Build a Calculator App from Scratch - SitePoint

    Sep 27, 2021 · Implement functionality by defining states and handlers in React for various calculator operations like addition, subtraction, multiplication, division, and special functions …

  8. How to build a calculator with React | by Umesha Godawela

    Oct 26, 2024 · a React hook that provides a way to manage complex state logic in components, especially when the state depends on multiple sub-values or when the next state depends on …

  9. 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 …

  10. React Calculator Examples - Medium

    State management, often handled using the useState hook or a global state library like Zustand, allows dynamic updates as users perform calculations. Event handling ensures that button …

  11. Some results have been removed
Refresh