SIGN IN

React Lesson 2: Homework Assignment

artwork depicting stylized React logo

Hopefully, all’s going well!

Let’s check our home task. The main reason of using React lies in the ability to create components based on your functionality set, i.e. to divide the whole app into small independent parts. In our case, we need to make comments our independent component. It will also be great to practice the skill of creating as many stateless components as possible. One of the examples in this scenario is the comment.js file.

CommentList.js

Our file named Articles.js will change in the following way:

This is how our home task coding will look like. You can download the file with the updated project from our repository or just copy it. Our next assignments will continue in this file.

a mockup web page of our blog at blog.soshace.com

About the author

Stay Informed

It's important to keep up
with industry - subscribe!

Stay Informed

Looks good!
Please enter correct name
Please enter correct email
Looks good!

Related articles

Building a Telegram Bot with Node.js

In this article, you'll learn how to build a Telegram bot using>>>

JavaScript

Handling Side Effects in Redux: Redux-Saga

In this article, we will be covering the handling of side-effects in Redux. This article assumes you have knowledge of React and a bit of>>>

JavaScript
21.11.2019

Why Using Node.js for Developing Web Applications Makes Perfect Sense

Let’s look in more detail at what the inherent benefits of developers using node.js in web applications really>>>

Fundamentals

Sign in

Forgot password?

Or use a social network account

 

By Signing In \ Signing Up, you agree to our privacy policy

Password recovery

You can also try to

Or use a social network account

 

By Signing In \ Signing Up, you agree to our privacy policy