freeCodeCamp / pantry-for-good

An open source food bank logistics and inventory management tool
Other
395 stars 189 forks source link

Refactor FoodItems into two components #357

Closed kenjiO closed 6 years ago

kenjiO commented 6 years ago

I think the FoodItem.js component is doing too much and the code is hard to reason with. So I kept the functionality for listing the food items in that file and moved all the functionality dealing with the form for adding and editing foods into a new FoodAddEditForm component.

jspaine commented 6 years ago

Yeah, that looks much better.