Intern — Middle
Creating a simple contacts list in React
livecode
Task condition
It is necessary to build a small React application that allows managing a contact list. The application should display a list of entries, where each entry contains a name and a phone number. The user can add a new entry by filling in two input fields and clicking the "Add" button.
const ContactsApp = () => {
return (
<div>
<h1>Contact List</h1>
<div>
<input type="text" placeholder="Name" />
<input type="text" placeholder="Phone" />
<button>Add</button>
</div>
</div>
});
export default ContactsApp;