Why do we spread props?

Spread attributes can be useful but they also make it easy to pass unnecessary props to components that don’t care about them or to pass invalid HTML attributes to the DOM . We recommend using this syntax sparingly.

Sizin İçin Seçtik  What are states and props in React?

Leave a Reply

Your email address will not be published. Required fields are marked *