Socket
Socket
Sign inDemoInstall

@vue/runtime-core

Package Overview
Dependencies
Maintainers
1
Versions
229
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue/runtime-core

@vue/runtime-core


Version published
Weekly downloads
3.4M
increased by6.45%
Maintainers
1
Weekly downloads
 
Created

What is @vue/runtime-core?

The @vue/runtime-core package is a part of the Vue.js framework that provides the core runtime components necessary for Vue applications to function. It includes the logic for the virtual DOM, components, reactivity system, and other essential features that enable developers to build interactive user interfaces.

What are @vue/runtime-core's main functionalities?

Reactivity System

The reactivity system allows developers to create reactive state objects that automatically update the DOM when the state changes.

{"import { reactive } from '@vue/runtime-core';\nconst state = reactive({ count: 0 });"}

Component Creation

This feature enables developers to define Vue components using the Composition API, which is a function-based approach to creating and managing component state and behavior.

{"import { defineComponent } from '@vue/runtime-core';\nconst MyComponent = defineComponent({\n  setup() {\n    // Component logic here\n  }\n});"}

Custom Renderer API

The Custom Renderer API allows developers to create custom renderers for Vue, enabling the use of Vue's reactivity and component system with different rendering backends, such as canvas or WebGL.

{"import { createRenderer } from '@vue/runtime-core';\nconst { render } = createRenderer({\n  patchProp,\n  ...otherOptions\n});"}

Other packages similar to @vue/runtime-core

Keywords

FAQs

Package last updated on 02 Jun 2021

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