Loading tutorials
map and forEach. It covers how React turns an array into rows and what the key prop does.2 min readArray.prototype.forEach. It also assumes you have the component hierarchy from Step 1: FilterableProductTable contains SearchBar and ProductTable, and ProductTable contains ProductCategoryRow and ProductRow.2 min readuseState, and read the product table from earlier chapters. It covers one decision: the filtered list of products is derived data, so you compute it while rendering and never store it in state.3 min readfilterText and inStockOnly. The product list and the filtered rows are not state.3 min readuseState. It also assumes you have finished Step 4, where filterText and inStockOnly were placed in FilterableProductTable, the closest common parent of SearchBar and ProductTable.3 min readuseState. It also assumes you have seen how FilterableProductTable owns the state and passes setter functions down as callbacks. Here we look at how SearchBar turns its two inputs into controlled inputs.2 min readFilterableProductTable owns filterText and inStockOnly, and SearchBar and ProductTable receive them as props. You should also be comfortable with props, useState, and callback props.2 min read