React JS Multiplication Program
Channel: ProgrammingLearning
Date: 20/02/2023

import React,  useState  from 'react';

function Multiplication() {
  const [num1, setNum1] = useState(2);
  const [num2, setNum2] = useState(3);
  const [result, setResult] = useState(0);

  function handleMultiply() {
    setResult(num1 * num2);
  }

 return (
    
      h2 Multiplication /h2
       p Num1: {num1} /p
      p Num2: {num2} /p
      p Result: {result} /p
      button onClick={handleMultiply} Multiply /button
    
  );
 
}

export default Multiplication;