Skip to content

Dev#14

Open
albriveratorres wants to merge 25 commits intomasterfrom
dev
Open

Dev#14
albriveratorres wants to merge 25 commits intomasterfrom
dev

Conversation

@albriveratorres
Copy link

Mandar carpeta coolserver-

import { Link } from "react-router-dom";

export default class Navigation extends Component {
render() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this is only presentational, please change to Functional Component

</Link>
</li>
<li className="nav-item">
<Link className="nav-link" to="/api/v1/ticket">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I understand this URL is for requesting data, not to show a view (note it says "api")

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same for the other ones

import axios from "axios";

export default class CreateUser extends Component {
async componentDidMount() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is in componentDidMount if the form is for creating?

return (
<div>
<div className="container">
<form>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a "preventDefault()" on submit or before to avoid faux-requests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants