How to avoid passing too many props?

I recently made a component with like 20 mandatory props. How could I have reduced them while keeping type safety?
2 Replies
Madaxen86
Madaxen863mo ago
deluksic
deluksic2mo ago
Or using a context, depending on what youre trying to do. Although 20 mandatory props sounds like this component is doing too much.
Want results from more Discord servers?
Add your server