Post views

Now that we can persist posts to our JSON Server, we turn to the views.

Post create/edit

This is the view that is used to create and edit blog posts. The editor markup is omitted in the listing in the text, as it is very long and isn't needed to explain the component. You can see the complete source, including the Quill markup, in ch8.zip. As with the user creation screen in the previous chapter, we'll start with the mixins and React lifecycle methods, then go through the form submission sequence.

Here is what the post create/edit view will look like when we are done:

Post create/edit

Post creation view with the Quill-rich text editor

Here is the post create/edit ...

Get React: Building Modern Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.