Preserve Whole Object Pattern: Free lesson from Clean Components Toolkit
Hey, I often get asked, "is it better to pass a whole object or separate props to a component?", so I wanted to give this to you. The answer is in the name of the pattern (keep it whole!), but the pattern dives into why , and gets into some nuance as well. Then, there's a whole step-by-step refactoring showing you how to apply the Preserve Whole Object Pattern to an example app, a quiz so you can test your knowledge, and then a video where I further explain my thoughts on the pattern. Read the Preserve Whole Object Pattern (you'll need to login with Github) There's a lot to learn there, and it's just one of 21 in the Clean Components Toolkit! 21 tools in the Clean Components Toolkit Each of these tools has the same structure: An explanation of the pattern A step-by-step tutorial showing how to apply the pattern to real world code A quiz to test your knowledge A video diving further into how to think about the pattern T...