Skip to content
Projekte

uidotdev/react-course-curriculum

Auf GitHub ansehen

Über uns

Lehrplan für den React-Kurs von ui.dev.

Lernen und Bildung

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
0
in 7 days
-3
in 15 days
-3
in 1 month
-3

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

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

Ähnliche Projekte entdecken

Wird geladen…