-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
initial commit #85
base: main
Are you sure you want to change the base?
initial commit #85
Conversation
required | ||
/> | ||
</div> | ||
<button className="btn btn-primary offset-md-3" onClick={handleSubmit} to="/contact_list"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't navigate to valid route
@@ -0,0 +1,25 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this isn't being used
); | ||
|
||
const Main = () => { | ||
const [contacts, setContacts] = useState([]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
review useState
<Routes> | ||
<Route exact path="/" element={<ContactList contacts={contacts} />} /> | ||
<Route path="/new" element={<AddNewContact addContact={handleAddContact} />} /> | ||
<Route path="/contacts/id" element={<ContactProfileInfo contacts={contacts} />} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not proper syntax for passing an id in a path
No description provided.