Loading tutorials
map and forEach. This chapter covers how React turns an array into elements and what the key attribute does. The searchable product table uses these id6 min readProductCategoryRow, ProductRow, and ProductTable. The chapter explains the rule that shaped that static version. Data moves 6 min readuseState. It also assumes you have the static version of the product table from the previous step. That version renders everything from props and holds no state, so nothing on screen can change yet.6 min readuseState for a single value. It also assumes you have seen the static product table from the earlier chapters. Here you will learn why the filtered list of products should be computed while the component renders, a6 min readfilterText and inStockOnly. You should also know how useState returns a value and a setter.5 min readuseState. You should also know the earlier steps of this tutorial: the component hierarchy, the static version, the minimal state (filterText and inStockOnly), and the decision that FilterableProductTable owns that 6 min readFilterableProductTable owns filterText and inStockOnly, and that it passes setter functions down to SearchBar as callback props. Here we look at what makes the two form fields6 min readfilterText and inStockOnly), state owned by FilterableProductTable, and callback props that carry changes back up. You should be comfortable with f6 min read