Skip to content

Conversation

@GormanGit
Copy link
Owner

Checkpoint Rubric

This is the rubric that your instructor will use to grade your checkpoints. Please do not edit.

Checkpoint 1

  • All tests passed: 40 points
  • Proper use of documentation (commenting on code): 15 points
  • Properly indented code: 15 points
  • Demonstrated effective use of JavaScript: 30 points

Checkpoint 2

  • The application works as it should: 40 points
  • Proper use of documentation (commenting on code): 15 points
  • Properly indented code: 15 points
  • Demonstrated effective use of JavaScript and the DOM API: 30 points

Checkpoint 3

  • Use of React: 25 points
  • Accesses an API: 25 points
  • Proper use of documentation (commenting on code): 25 points
  • The application functions as it should: 25 points

Copy link

@stu-k stu-k left a comment

Choose a reason for hiding this comment

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

The fetch/react stuff works just fine, but once again, your code is a mess. Fix it for a better grade.

Component
} from 'react';
import 'semantic-ui-css/semantic.min.css';

Copy link

Choose a reason for hiding this comment

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

Whitespace



import './App.css';

Copy link

Choose a reason for hiding this comment

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

Whitespace

//
// .catch(err => console.log(err))
})

Copy link

Choose a reason for hiding this comment

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

Whitespace

/div> <
/div> <
/div>

Copy link

Choose a reason for hiding this comment

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

Whitespace

// imgStyle
// } >
// < /div>

Copy link

Choose a reason for hiding this comment

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

Whitespace

} < /div>
// < /div>
);

Copy link

Choose a reason for hiding this comment

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

Whitespace

if (links.length) {
console.log('what')
return links.map((article, key) => {
return ( <
Copy link

Choose a reason for hiding this comment

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

What is this mess? If you were given this code, would you be able to tell what was being rendered?
Here's the same code, but readable:

return (
  <div>
    <div class="ui left align container">
      <div class="ui yellow segment">
        <a href={article.url} key={key}>
          {article.title}
        </a>
      </div>
    </div>
  </div>
)

Or, if you wanted to indent attributes within the html tags, it would look like this:

return (
  <div>
    <div
      class="ui left align container"
    >
      <div
        class="ui yellow segment"
      >
        <a
          href={article.url}
          key={key}
        >
          {article.title}
        </a>
      </div>
    </div>
  </div>
)

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.

4 participants