Heard about custom hooks but not sure how to harness their power? In this blog post, we’ll delve into the wonderful world of custom hooks in React, breaking down what they are, how to create them, and why they’re a game-changer for your projects. What Are Custom...
If you’re someone who works with React, you might think you know what a layout is. But, do you really? React, a popular JavaScript library for building user interfaces, employs the concept of layouts to organize and structure web applications. Despite its...
You might have heard about a new tool called useSyncExternalStore() in React 18. It helps connect your React app to outside data sources. Usually, it’s used by fancy internal tools like Redux to manage state. The official documentation explains that...
The React team is updating a hook called useFormState because it caused confusion and wasn’t just for forms. They’re making these changes: Renaming it to useActionState. Adding a pending state to the returned values. Moving the hook from react-dom to the...
In today’s digital world, securing your data and ensuring safe communication between your application and server is crucial. One common method of achieving this is by using tokens. Tokens act as a form of authentication, allowing only authorized users to access...