A discussion thread using infinite scroll (a ReactJS exercise). You can see a result in confident-montalcini-7c0ad1.netlify.app
implement the following features on a page:
- Display a discussion composed of comments
- Filter the list of posts to display only validated comments
- Create a new post
GET /api/posts Provides a paginated list of posts. You don’t need to worry about the order of the posts. Query string Parameters page : the page number to be fetched filter : a string the specifies the current filter; it only supports “verified”
PUT /api/posts Creates a new post. Takes a JSON object in the body. Request Body Schema. userName (text) userProfileImgUrl (text) comment (text) validated (boolean)
- initial page
- posts list
- post creation
- functionality
- react client state
- code structure
- file structure
- ui
- ux
- typescript
- virtualized list component (although it seems there is a limit of 1032443 items 🤔)
- add option to resume reading? (or select specific page)
add the 'Comments' titlechange NewPost semantic to<form>
add a dropdown with pagesimplementvirtuoso
save last read post insessionStorage
save reply insessionStorage
check issue of duplicate requests (duplicate posts)navigate to saved last read is having 🐛
- improve
back to top
, it stops on 2nd item instead of the first item - validate the
Uncaught TypeError: e.getBoundingClientRect is not a function
error - [ ]
- [ ]