In most applications properties are passed, from parent to child, so they can be used some levels deeper. This can sometimes seem inconvenient, especially when you have to pass properties to a lot of components. Thanks to React's Context API, this is easy to avoid.…
React components can only return one element. Often, too often, I see developers who therefore enclose their component in a div. But let me just point out the dangers of this.…
In React we use props to pass properties to component. Useful, but you can easily implement them wrong. Below I will discuss two common mistakes.…
As told in a previous post, nowadays you can use Hooks in React, allowing you to use state and lifecycle methods without problems. Read further to know how.…
In a previous blog post I announced that I soon would be posting more best practices to take into account when developing a React app. Today I write about the difference between stateful and stateless components.…