![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@vavt/message
Advanced tools
A native JS crafted message notification component, encompassing features for displaying messages, warnings, successes, and errors.
原生 js 编写的消息提示组件。包括消息、警告、成功和错误提示。
yarn add @vavt/message
import { message } from '@vavt/message';
// error, success, info, warning
const closeFN = message.info('这是一条普通信息');
// 手动关闭
closeFN();
类型名称 | 默认值 | 描述 |
---|---|---|
class | '' | |
single | false | 是否只显示一个提示 |
offsetTop | 20 | 单个提示距离上一个提示的距离 |
duration | 3000 | 该时间后自动关闭,<=0 时不会自动关闭 |
closeable | false | 是否显示关闭按钮 |
darkSelector | :root[data-theme=dark] | 暗夜模式的选择器,只能通过config 配置,不能调用时设置 |
zIndex | 9999 |
配置全局属性
message.config({ duration: 5000 });
在调用时配置
message.warning('这条消息不会自动关闭', { duration: 0 });
FAQs
A native JS crafted message notification component, encompassing features for displaying messages, warnings, successes, and errors.
The npm package @vavt/message receives a total of 8 weekly downloads. As such, @vavt/message popularity was classified as not popular.
We found that @vavt/message demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.