lab 5 done (again)
This commit is contained in:
@@ -4,14 +4,16 @@ import buildings from './data.js';
|
||||
import './CSS/App.css'
|
||||
import Chart from './components/Chart.jsx'
|
||||
import Task from './Task.jsx'
|
||||
|
||||
|
||||
function App() {
|
||||
const [count, setCount] = useState(0)
|
||||
|
||||
const [filteredData, setFilteredData] = useState(buildings);
|
||||
return (
|
||||
<div className="App">
|
||||
<h3>Самые высокие здания и сооружения</h3>
|
||||
<Chart data={ buildings }/>
|
||||
<Table data={ buildings } amountRows="15" />
|
||||
<Chart data={ filteredData } />
|
||||
<Table data={ buildings } setFilteredDataCallback={setFilteredData} amountRows="15" />
|
||||
{/* <Task/> */}
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user