Chapter 6. React Blog App Part 3 – Posts

This chapter contains all of the code necessary to create, edit, list, and view blog entries. It also includes integration with the Quill rich text editor. You can follow along with the code, including all of the necessary Less/CSS for this portion of the app, in ch8.zip.

The construction of the application is split into the following four parts:

  • Part 1: Actions and common components
  • Part 2: User account management
  • Part 3: Blog post operations
  • Part 4: Infinite scroll and search

Code manifest

The following is a manifest for all of the code in this chapter. You can follow along with code listings in ch8.zip.

There's just one store for posts.

  • Posts store: js/stores/posts.js

Post-related views covered, and their respective styles, include:

  • Post create/edit view: js/views/posts/edit.jsx, css/views/posts/edit.less
  • Post view: js/views/posts/view.jsx, css/views/posts/view.less
  • Post list component: js/components/posts/list.jsx, css/components/posts/list.less
  • Post list view: js/views/posts/list.jsx, css/views/posts/list.less

Affected views:

  • User view: js/views/users/view.jsx (add user posts)
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.145.193