3 ms·
This is a strangely timed article, because just today I got fed up with this exact approach and I'm considering abandoning it. I've been writing React this way
by danielvaughn 5y ago
This is a strangely timed article, because just today I got fed up with this exact approach and I'm considering abandoning it.
I've been writing React this way for about 2 years now. It's very nice...for small functions. But over time, it starts to feel extremely heavy, especially with larger functions that need to take in lots of parameters. I know, I know, I could break the function down. But in some cases you're just working with complex data that has a lot of inputs.
When you're working with more than 10 or so parameters, adding and removing them feels like a very heavy chore.
- darepublic 5y agoYou prefer ten arguments to an object with ten fields?