![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.
@masx200/custom-elements-random-define
Advanced tools
web-components随机定义custom-elements,并且防止重名定义的js库
web-components
随机定义 custom-elements
,并且防止重名定义的 js 库
如果定义重名,则自动使用随机名称定义
由于修改了 customElements
的 API,所以需要在最前面引入此模块
cnpm install --save @masx200/custom-elements-random-define
或者
yarn add @masx200/custom-elements-random-define
import RandomDefine from "@masx200/custom-elements-random-define";
从 cdn 获取
https://cdn.jsdelivr.net/gh/masx200/custom-elements-random-define@latest/dist/index.min.js
import RandomDefine from "https://cdn.jsdelivr.net/gh/masx200/custom-elements-random-define@latest/dist/index.min.js";
declare var RandomDefine: (
initclass: CustomElementConstructor,
extendsname?: string | undefined
) => string;
var mycom = class extends HTMLElement {};
const tag = RandomDefine(mycom);
var myele = new mycom();
let inst = document.createElement(tag);
var mycom = class extends HTMLDivElement {};
const tag = RandomDefine(mycom, "div");
var myele = new mycom();
let inst = document.createElement("div", { is: tag });
FAQs
web-components随机定义custom-elements,并且防止重名定义的js库
The npm package @masx200/custom-elements-random-define receives a total of 1 weekly downloads. As such, @masx200/custom-elements-random-define popularity was classified as not popular.
We found that @masx200/custom-elements-random-define demonstrated a not healthy version release cadence and project activity because the last version was released 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.