start 2.6

This commit is contained in:
counterweight 2025-05-24 23:43:23 +02:00
parent c699628d8d
commit bf5fc1431d
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
10 changed files with 147 additions and 0 deletions

View file

@ -0,0 +1,24 @@
import { useState } from "react";
const App = () => {
const [persons, setPersons] = useState([{ name: "Arto Hellas" }]);
const [newName, setNewName] = useState("");
return (
<div>
<h2>Phonebook</h2>
<form>
<div>
name: <input />
</div>
<div>
<button type="submit">add</button>
</div>
</form>
<h2>Numbers</h2>
...
</div>
);
};
export default App;