Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

inferno-clone-vnode

Package Overview
Dependencies
Maintainers
1
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inferno-clone-vnode

provides helper function to clone Inferno's vNodes

  • 7.4.6
  • npm
  • Socket score

Version published
Weekly downloads
20K
decreased by-14.78%
Maintainers
1
Weekly downloads
 
Created
Source

Inferno-clone-vnode

This package can be used to clone Inferno virtual nodes. This package can also be aliased to React.cloneElement.

import { cloneVNode } from 'inferno-clone-vnode';

const cloned = cloneVNode(
  vNode,
  [props],
  [...children]
)

Clone and return a new Inferno vNode using element as the starting point. The resulting element will have the original element’s props with the new props merged in shallowly. New children will replace existing children. key and ref from the original element will be preserved.

Keywords

FAQs

Package last updated on 22 Oct 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc