const calculateHypotenuse = useCallback((sideA, sideB) => {
const powerA = Math.pow(sideA, 2)
const powerB = Math.pow(sideB, 2)
return Math.sqrt((powerA + powerB))
}, [])
- REACT.
Test the project yourself: Teste the project here!!!
- Website - My GitHub
- Frontend Mentor - @lucasbailo
- Instagram - @lucassbailo
- LinkedIn - Lucas Bailo