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;
label {
width: 100px;
}
input {
margin-bottom: 3px !important;
}
===== Bootstrap =====
import './App.css';
import 'bootstrap/dist/css/bootstrap.css';
function App() {
return (
Valami
);
}
export default App;