• Stars
    star
    2,085
  • Rank 22,148 (Top 0.5 %)
  • Language
  • Created almost 9 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Curriculum for ui.dev's React course.

UI.dev Logo

React Course Curriculum - Hacker News Clone

Info

This is the repository for UI.dev's "React" course curriculum project.

For more information on the course, visit ui.dev/react.

Project

This is a (soft) "Hacker News" clone.

You can view the final project at hn.ui.dev

Solution

If you get stuck, you can view my solution by checking out the solution branch.

You will need to use React's dangerouslySetInnerHTML prop to show the HTML posts that the API gives you. We didn't cover it in the course but you can read about it here.

Approaches

There are a few different ways you can approach this, each with varying difficulties.

  • Hardest: Look at the finished project and build it. This is obviously the hardest approach but the one you'll gain the most learning from. The only thing that you'll need is the documentation for the Hacker News API.

  • Whatever word is between "Hardest" and "Easiest": Copy my api.js file to your project then build the app. After all, you're here to learn React, not the Hacker News API. If you took this approach, I wouldn't blame you.

  • Easiest: Take 10-15 minutes to walk through my code. Notice how I approached different problems and how you may or may not want to do something similar. From there, start building and reference my project only as you need it.

Project Preview

Light Mode Dark Mode

Tyler McGinnis

More Repositories

1

usehooks

A collection of modern, server-safe React hooks – from the ui.dev team
MDX
9,214
star
2

react-course

Code for ui.dev's "Classic React" course
JavaScript
2,463
star
3

npm-trends

NPM package comparison
TypeScript
814
star
4

rrssr-v4

Tutorial code for Server Rendering with React and React Router v4
JavaScript
208
star
5

react-query-course

The project that is built over the course of the React Query course at ui.dev
JavaScript
99
star
6

react-hooks-course-curriculum

Curriculum for ui.dev's "React Hooks" course
JavaScript
54
star
7

react-router-v4-course

Project for TylerMcGinnis.com's React Router course
JavaScript
48
star
8

react-hooks-course

Code for TylerMcGinnis.com's "React Hooks" course
JavaScript
38
star
9

react-router-server-rendering

App for server rendering with React Router
JavaScript
20
star
10

redux-course-1

First project for UI.dev's Redux course
15
star
11

react-router-v5-course

Project for UI.dev's "React Router v5" course
CSS
13
star
12

advanced-javascript-course

11
star
13

typescript-course-curriculum

Curriculum for ui.dev's "TypeScript" course
10
star
14

react-router-v5-server-rendering

Server Rendering with React Router v5
JavaScript
10
star
15

redux-course-2

Polls project for UI.dev's Redux course
JavaScript
10
star
16

react-with-typescript-curriculum

Curriculum for the React with TypeScript course on ui.dev
JavaScript
10
star
17

react-with-typescript-course

Course content and project for the ui.dev React with TypeScript course.
JavaScript
10
star
18

react-router-course

Project for ui.dev's React Router course
JavaScript
7
star
19

typescript-tic-tac-toe

The mid-course project for the TypeScript course.
TypeScript
6
star
20

redux-course-curriculum

Curriculum for UI.dev's Redux course
JavaScript
4
star
21

post-web-audio-api

Examples from the Web Audio API post.
JavaScript
4
star
22

react-query-api

The API which we use for the React Query course. Built with Mock Service Worker
TypeScript
1
star