From d3b663338cb3b6ec87663ce3cc5fb0a9f3ad4675 Mon Sep 17 00:00:00 2001 From: Jason Kao Date: Tue, 6 Feb 2018 05:18:11 -0500 Subject: [PATCH] fix(seed): Fixed disruptive, unclosed tag (#16594) Closes #16581 --- challenges/03-front-end-libraries/react.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/03-front-end-libraries/react.json b/challenges/03-front-end-libraries/react.json index 416057167f..f5fe5fdf80 100644 --- a/challenges/03-front-end-libraries/react.json +++ b/challenges/03-front-end-libraries/react.json @@ -2842,7 +2842,7 @@ "releasedOn": "December 25, 2017", "description": [ "The map array method is a powerful tool that you will use often when working with React. Another method related to map is filter, which filters the contents of an array based on a condition, then returns a new array. For example, if you have an array of users that all have a property online which can be set to true or false, you can filter only those users that are online by writing:", - "let onlineUsers = users.filter(user => user.online);", + "let onlineUsers = users.filter(user => user.online);", "
", "In the code editor, MyComponent's state is initialized with an array of users. Some users are online and some aren't. Filter the array so you see only the users who are online. To do this, first use filter to return a new array containing only the users whose online property is true. Then, in the renderOnline variable, map over the filtered array, and return a li element for each user that contains the text of their username. Be sure to include a unique key as well, like in the last challenges." ],