Building a Blog in React


Not CompletedApplying Custom Styles to the React Modal

So, we now have the ability to open and close our modal, so we have the behavior we're looking for, but the look and feel isn't exactly what I had in mind, and probably not for you, either.

Not CompletedFixing Screen Reading Warning for React Modal

We're just about done with all of the functionality needed for the modal and we're about to be able to work on the blog form itself.

Not CompletedCreating the Initial Blog Form Component

With our modal complete, we're now ready to start integrating the form. Now this blog form is going to be completely separate in regards to functionality from the modal itself.

Not CompletedBuilding the Blog Form Event Handlers

Now that we have our form rendering in the modal, in this guide we're gonna write out all of the boilerplate code needed for a couple things.

Not CompletedCreating Blog Posts via the API

In this guide, we are going to make it possible to create a blog record from our blog from and we are only going to be passing these two values, the Title and the Blog status for now but that's all we need in order to build out our API connection.

Not CompletedBuilding the Full Blog Creation Workflow

Now that we can create records using our blog form with the API what I'd like to do now is build out the entire workflow.

Not CompletedApplying Blog Form Styles

As promised, in this guide, we are gonna focus on a few design elements.

Not CompletedBuilding the Styles for the New Blog Icon with a Fixed Position on the Page

This is gonna be a fun guide, in this guide we're gonna take our little link here that opens up the modal and we're gonna turn it into a large clickable icon and this is something that you may have seen a similar design for in many different sites.

Not CompletedRevisiting Render Props and Passing the Logged In Status to Child Components

In this guide, we are gonna see how we can add some authorization rules for creating new blogs.

Not CompletedBuilding a Dedicated Icon Helper File in React

I mentioned earlier how I really was not a fan of the way that we have our icons structured. They're completely functional, they work.

Not CompletedInstalling Draft JS Dependencies for Rich Text Editing in React

It's time to start building in our Rich Text Media Editor.

Not CompletedRendering Draft JS Form Component and Building Rich Text Editor Styles

In this lesson, we are going to create a rich text editor, we're gonna call the key dependencies, and then we're going to apply the initial styles.

Not CompletedRetrieving HTML Content from Draft JS Component

Now that we have our blog form, all ready to receive our editor's state changes, let's see how we can wire that up and all of the functionality we're gonna have to build in order to make our rich text editor give us that string back.

Not CompletedFixing Set State on an Unmounted Component Warning in React

As you may or may not have noticed, we are running into a warning whenever we create a new blog. And in this guide, we're gonna see what that warning is, what's causing it, and then also how to fix it.

Not CompletedInstalling React HTML Parser and Generating Sample Content

Now that our rich text editor is working, I think it's time for us to start actually working with the HTML that it gives us.

Not CompletedParsing HTML in React and Rendering to the Blog Detail Page

Now that we have the libraries we need, in order to take a string that has HTML in it and convert it and render it onto the screen, let's implement that in our data detail page. And we're also going to clean it up a little bit and fix some of the bugs that you can currently see in there.

Not CompletedInstalling Striptags and Truncate Component in React

Now that we have our HTML rendering properly in our blog detail page, it's time to take a look at the index page and see what we need to do.

Not CompletedRemoving HTML Tags and Generating Summaries for Blogs

Now that we have our script tags and our truncate libraries imported into the application, in this guide we are going to implement them, so this is gonna build out our summaries and also pull out all of those HTML tags so that this looks nice and clean.

Not CompletedConfiguring Dropzone for Blog Featured Image

Up until this point, if we wanted to upload a featured image for our blog, we had to go through DevCamp Space. So in this guide, we're gonna start the process of adding our dropzone image component so that we can start adding images directly to our blog.

Unsupported Browser

devCamp does not support ancient browsers.
Install a modern version for best experience.