Comment filtrer les articles à l'état React

{...state,currentMenu: action.menu.filter((menu) =>
state.currentCategoryId == menu.category_id)}
tinydev