Welcome
When Sophie Alpert and Dan Abramov presented hooks for the first time at React Conf 2018, many React developers (including myself) saw them as a real revolution. Before, you had to declare a component as a class to give it a local state or make it able to trigger side effects in the component lifecycle. With hooks, you were finally able to do that in a function component.
Like many developers, I discovered when I started using them for real that they were not as easy to use as they sound. There were hidden pitfalls, requiring a change in our mental model to solve them. But it was worth it because they made the code so elegant and reusable!
With this course, I hope I’ll contribute to make hooks easier to learn and use every day.
Let’s start with the first lesson and (re)discover one of the most useful hooks:
useState.