useState

Why does React state need a new object/array?

If you have been using React for a while, you are familiar with how state update works. There are a lot of...

Provide callback to useState hook like setState

If you have been writing class components for a while, you might be familiar with the callback functionality that the setState function...

React Hooks and Local Storage: Let’s build a ToDo app

React hooks have been around for quite some time. They have been widely adopted by the React community since then and have...

Hi there! Want some more knowledge?

Think that the knowledge shared is helpful? You might want to give our mailing list a try. We'll send you 2-4 emails a month, right when new posts come out.

Hi there! Want some more knowledge?

Think that the knowledge shared is helpful? You might want to give our mailing list a try. We'll send you 2-4 emails a month, right when new posts come out.