Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
inferno-vnode-flags
Advanced tools
Provides an enum of all possible VNode Flags used when calling Inferno.createVNode
Inferno VNode Flags is a small utility library for Inferno.
Usage of inferno-vnode-flags
should be limited to assigning VNodeFlags
when using Inferno.createVNode
.
npm install --save inferno-vnode-flags
VNodeFlags.Text
VNodeFlags.HtmlElement
VNodeFlags.ComponentClass
VNodeFlags.ComponentFunction
VNodeFlags.ComponentUnknown
VNodeFlags.HasKeyedChildren
VNodeFlags.HasNonKeyedChildren
VNodeFlags.SvgElement
VNodeFlags.MediaElement
VNodeFlags.InputElement
VNodeFlags.TextareaElement
VNodeFlags.SelectElement
VNodeFlags.Void
You can easily combine multiple flags, by using bitwise operators. A common use case is an element that has keyed children:
const flag = VNodeFlags.HtmlElement | VNodeFlags.HasKeyedChildren;
import Inferno from 'inferno';
import VNodeFlags from 'inferno-vnode-flags';
const vNode = Inferno.createVNode(VNodeFlags.Element, 'div', { className: 'example' }, 'Hello world!');
Inferno.render(vNode, container);
FAQs
Provides an enum of all possible VNode Flags used when calling Inferno.createVNode
The npm package inferno-vnode-flags receives a total of 131,939 weekly downloads. As such, inferno-vnode-flags popularity was classified as popular.
We found that inferno-vnode-flags demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.