React Hooks aim to solve the difficulties of logic reuse by enabling us to write components that have access to features like state, context, lifecycle methods, ref, etc. In this article, we’ll be spending our focus on the useContext hook—a useful hook that allows components to access data without the need to rely on props.
After years of hard work and refinement, the former React Docs Beta have been promoted to official React documentation and are now live! Let’s look at what's new and exciting in the updated React docs.
Since parent components can pass down any data as props to child components, we need to validate the data type to ensure the child gets what it expects. Let’s take a look!
Components are essential building blocks in a React application since they allow us to break down our application into smaller, reusable pieces. In this article, we’ll discuss what makes a React component and what it takes to create one.
In this post, we will build a simple React application that shows how to use the Web Audio API to extract audio data from an audio source and display some visuals on the screen. It can be a good alternative when no video is available to engage users—including applications related to music, podcasts, voice notes, etc.