O'Reilly logo

Mastering React by Ryan Vice, Adam Horton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required