import './App.css'; import { useState } from "react"; import 'bootstrap/dist/css/bootstrap.min.css'; import Button from 'react-bootstrap/Button'; function App() { const [base, setBase] = useState(); const [height, setHeight] = useState(""); const [area, setArea] = useState(""); function calcTriangleArea() { let area = base * height / 2 setArea(area) } return (

Háromszög területe

setBase(e.target.value)} className='form-control'/>
setHeight(e.target.value)} className='form-control'/>
); } export default App;