|
|
|
@ -25,7 +25,7 @@ const LoanCalculator = () => {
|
|
|
|
}, [monthlyPayment]);
|
|
|
|
}, [monthlyPayment]);
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<div className="widget">
|
|
|
|
<h4 className="mb-5">Loan Calculator</h4>
|
|
|
|
<h4 className="mb-5">Loan Calculator</h4>
|
|
|
|
|
|
|
|
|
|
|
|
<form onSubmit={(event) => event.preventDefault()}>
|
|
|
|
<form onSubmit={(event) => event.preventDefault()}>
|
|
|
|
@ -40,7 +40,7 @@ const LoanCalculator = () => {
|
|
|
|
</h4>
|
|
|
|
</h4>
|
|
|
|
<button type="submit" className="btn btn-primary btn-lg w-100 mt-3 center" onClick={calculateMonthlyPayment}>Calculate</button>
|
|
|
|
<button type="submit" className="btn btn-primary btn-lg w-100 mt-3 center" onClick={calculateMonthlyPayment}>Calculate</button>
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
</>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|