Compare commits

..

No commits in common. '777d55dd58264304096ab7523b057207fc65b20f' and '9cd6f1ebccc7aaf1c7c005c5183ddbb01fd80e71' have entirely different histories.

@ -1,10 +1,15 @@
import Alert from "./components/Alert";
import ListGroup from "./components/ListGroup";
function App() {
let items = ["New York", "San Francisco", "Tokyo", "London"];
const handleSelectItem = (item: string) => {
console.log(item)
}
return (
<div>
<Alert>Hello Marx</Alert>
<ListGroup items={items} heading="Cities" onSelectItem={handleSelectItem}/>
</div>
);
}

@ -1,11 +0,0 @@
interface Props{
children: string;
}
function Alert({children} : Props) {
return (
<div className="alert alert-primary">{children}</div>
)
}
export default Alert
Loading…
Cancel
Save