An assignment that clones the reddit post and comments page.
This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
- Uses EmotionCSS for styling.
- The post id is hard coded. In the real world it would ideally come from the url.
- The app is responsive but the UX is not fully optimized for mobile.
- Uses react-query as a server state management library.
- Uses date-fns to calculate the comment time difference.
- Uses Github public api which is rate limited to 60 calls/hr.
- Comments will be refetched on window focus. This is the default behaviour of
react-query
.