Should I use useState or Redux?

You should use local state i.e. useState as much as possible. Redux state should be the last resort. Only use Redux state if you absolutely need to pass data from one end of the application all the way to another end . This is both good practice for tight coupling and good performance.

Sizin İçin Seçtik  Yeni bir hat ne kadar?

Leave a Reply

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