Skip to content

assignment Alfred DSouza#7

Open
dsouzaalfred wants to merge 1 commit intojavascripters-community:masterfrom
dsouzaalfred:assignment_by_alfred_dsouza
Open

assignment Alfred DSouza#7
dsouzaalfred wants to merge 1 commit intojavascripters-community:masterfrom
dsouzaalfred:assignment_by_alfred_dsouza

Conversation

@dsouzaalfred
Copy link
Copy Markdown

assignment Alfred DSouza

Copy link
Copy Markdown

@akshaynaik404 akshaynaik404 left a comment

Choose a reason for hiding this comment

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

Use stateless functional components and prop-types wherever necessary.

Comment thread src/App.js
import OrderReview from './components/OrderReview/OrderReview';
import NotFound from './components/NotFound/NotFound';

import Header from './components/Header/header';
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

A base filename should exactly match the name of its default export. More info

import React, { Component } from 'react';

class NotFound extends Component {
class Footer extends Component {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Use Stateless functional components when there's no state. Detailed Explanation

render() {
return (
<div>
<h1>Developer is sleeping</h1>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You can directly return <h1> tag instead of wrapping it in a <div>

@@ -0,0 +1,21 @@
import React, { Component } from 'react';

class UserDetails extends Component {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You can use stateless functional component here.

Copy link
Copy Markdown
Contributor

@javascripters2015 javascripters2015 left a comment

Choose a reason for hiding this comment

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

Please update the README file with all the required instructions for setup the project

Rest of the things looks good as a first review of your code, please update the code according to code review comments.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants