Skip to content
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

Add link to the data.js file in day 7 #104

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion day-07/post.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@ Now, we'll want to make an HTTP request when the component itself is getting rea

Let's update the `Content` component with the request to the github api. Since we'll only want to display a small list, let's take the latest four events.

> We've stored a static JSON file of github data that we'll load directly from source here (we'll get back to making AJAX requests in a few days) using promises. For now, let's focus on how we'll implement updating our component with new data:
> We've stored a static JSON file of github data that we'll load directly from source here (we'll get back to making AJAX requests in a few days) using promises. To access this data, add the following `script` tag to your document:
> ```html
> <script src="https://cdn.jsdelivr.net/gh/fullstackreact/30-days-of-react@master/day-07/public/data.js"></script>
>```

For now, let's focus on how we'll implement updating our component with new data:

```javascript
class Content extends React.Component {
Expand Down