/hacker-news

Hacker News clone build with ReactJS hooks, TypeScript & jest for unit testing

Primary LanguageTypeScript

ReactJS TypeScript

React Hooks Course Curriculum - Hacker News Clone

Info

This is the assignment project in which, task was to migrate the existing application to use React hooks. Old application is having class components & job is to replace them with function component & utilize hooks for state & side effects.

How I upgraded this application

  • Replaced all class components with function components which utilize hooks for state, effects, references, context etc
  • create various custom hooks to increase code-logic sharing
  • added TypeScript to create strongly-typed codebase
  • added Unit tests using jest & react-testing-library

Project

This is a (soft) "Hacker News" clone. You can view the final project at hn.ui.dev/.

Project Preview

Light Mode Dark Mode

Deepak Chandani