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.

Read more

What is React useState?

useState is a Hook that allows you to have state variables in functional components . You pass the initial state to this function and it returns a variable with the current state value (not necessarily the initial state) and another function to update this value.4 Ara 2020

Read more

React Hook ne işe yarar?

React hooks bir class yazmadan react özelliklerini kullanmanıza olanak sağlayan bir yapıdır. React geliştiricilerinin hatırlayacağı üzere daha önce oluşturduğumuz class’ları react .component’ten extend ediyorduk ve bu sayede react özelliklerini kullanabiliyorduk.

Read more