Use the [https://jsonplaceholder.typicode.com/] API to get users, posts, and comments
blogService
getComments(postId)
getUsers()
getPosts()
Home
display top 5 longest postsHeader
with navUsers
display a list of usersUserDetails
displays a user'sname
,username
,email
, and theirposts
User
individual user item for a list- BONUS:
RegisterUserForm
form to register a new user - `Posts' display a list of posts
Post
individual post item for a list has a Link toPostDetails
PostDetails
display a post and all of its commentsComments
list of commentsComment
individual comment item for a list
Home
display the top 5 longest postsAllUsers
display all usersRegisterUser
create a new userFilterPosts
filter posts by title (for all users)
users
stores user informationposts
stores post informationcomments
stores comment information for a single post
- User
- BONUS:
REGISTER_USER
FETCH_USERS
LOAD_USERS_START
LOAD_USERS_END
- BONUS:
- Posts
UPDATE_POST_SEARCH_TERM
FETCH_POSTS
LOAD_POSTS_START
LOAD_POSTS_END
- Comments
FETCH_COMMENTS
LOAD_COMMENTS_START
LOAD_COMMENTS_END
- Users
getUsers
- Posts
getLongestPosts
getPosts
getFilteredPosts
getPostsForUser
- Comments
getComments
- Create a
withList
higher order componentwithList
expects alist
prop withPropTypes.array.isRequired
- each array item should be an object
withList
takes a Component to create for each item inlist
withList
takes a optional argument for optionsoptions
propKey
- name that
withList
will use to pass each object inlist
to Component - e.g. if propKey is comment
<Component comment={obj} />
- name that
spread
- should include
spread
with is a boolean defaulting to false - if spread is true,
withList
spreads the items in a list item into Component - if spread is false
withList
passes the entire object to the Component usingpropKey
- e.g. if spread is true
<Component {...obj} />
- e.g. if spread is false
Component propKey={obj} />
- should include
- Snapshot test components
- mock and test the
blogService
- Unit test reducers, selectors, actions
- actions should use the
blogService
mock
- actions should use the