{ The function we passed to the To learn about conditional rendering in React, and implementing list return ( terminal/command line. taskStatus: 'To do' This ensures no unnecessary filter() calls and, thus, better performance. Understanding client-side JavaScript frameworks, React interactivity: Editing, filtering, conditional rendering, Overview: Client-side JavaScript frameworks, // if this task has the same ID as the edited task, Assessment: Structuring a page of content, From object to iframe other embedding technologies, HTML table advanced features and accessibility, Assessment: Fundamental CSS comprehension, Assessment: Creating fancy letterheaded paper, Assessment: Typesetting a community school homepage, Assessment: Fundamental layout comprehension, What went wrong? As a matter of fact, you are also going to return some undefined elements in the resulting array, if the condition book.shelf === shelf is falsy. You should see that the different buttons have been given their respective names. document.getElementById( "ak_js_1" ).setAttribute( "value", ( new Date() ).getTime() ); Thank you, I understand filters a little bit more, i suggest that you also explain maps for beginner like me . The filter() method returns an array, so we can call map() immediately Great article I literally got my code working after just checking out your very first example. Its the process of looping through an array and including or excluding elements inside that array based on a condition that you provide. Bind this function to the form's submit event by adding the following onSubmit handler to the editingTemplate's