星期一 02 凌晨 六月 5o 2023
JWT Authentication in React with react-router
JWT Authentication in React with react-router
In this blog post, we’ll explore the seamless integration of JWT authentication with React and react-router. We’ll also learn how to handle public routes, secure authenticated routes, and utilize the axios library to make API requests with the authentication token.
Live Technical Demo This Week: Use API calls in React to build native email functionality (sponsor)
Build native email read and send functionalities with React in less than 30 minutes. Nylas offers ready-to-go sample apps, actually helpful docs, and so much more. You’ll be able to launch communications features within your app in just minutes. Grab your link to join this week’s technical demo.
Happy 10th birthday to reactjs! 🎂⚛️
As we celebrate a decade of React, let’s take a moment to appreciate the amazing community of developers who have contributed to this remarkable library over the years.
MouseTracker: A react component that follows your mouse
This component lets you render content that follows your mouse. The component accepts any children, and renders them into a fixed-position div that takes the coordinates of the mouse, with optional offsets.
A collection of modern, server-safe React hooks.
A Comprehensive Guide of React Unit Testing
Let’s see an example of how unit testing is important. Let’s say we have a add function in an application that we use in our calculator application. This add function accepts two parameters, and these parameters should be a number.
The evolution of React APIs and code reuse
Trace the evolution of React APIs and the mental models behind them. From mixins to hooks, to RSCs, understand the tradeoffs along the way.
使用react-router进行React中的JWT身份验证
在这篇博文中,我们将探讨 JWT 身份验证与 React 和 React-router 的无缝集成。我们还将学习如何处理公共路由、保护经过身份验证的路由,以及如何利用 axios 库使用身份验证令牌发出 API 请求。
本周现场技术演示:在 React 中使用 API 调用构建本机电子邮件功能(赞助商)
在 30 分钟内使用 React 构建本机电子邮件阅读和发送功能。 Nylas 提供现成的示例应用程序、实际有用的文档等等。只需几分钟,您就可以在应用程序中启动通信功能。 获取您的链接来参加本周的技术演示。
【reactjs 10 岁生日快乐! 🎂⚛️](https://reactdigest.net/link/15716/a24eb3ef-556d-456e-a6a4-25de0a1cd63b/email)
在我们庆祝 React 十周年之际,让我们花点时间欣赏一下多年来为这个非凡的库做出贡献的令人惊叹的开发人员社区。
该组件允许您渲染跟随鼠标的内容。该组件接受任何子组件,并将它们渲染到固定位置的 div 中,该 div 接受鼠标的坐标,并具有可选的偏移量。
现代的、服务器安全的 React hook 的集合。
让我们看一个例子来说明单元测试的重要性。假设我们在计算器应用程序中使用的应用程序中有一个添加函数。这个add函数接受两个参数,这些参数应该是一个数字。
追踪 React API 的演变及其背后的思维模型。从 mixins 到 hooks,再到 RSC,了解整个过程中的权衡。
发布者