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

@remote-ui/core

Package Overview
Dependencies
Maintainers
3
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@remote-ui/core

This library provides the core model for maintaining a tree of UI components, and for communicating operations on that tree to another context through tiny messages. For a full overview of how `@remote-ui/core` fits in to the different pieces of remote-ui

  • 2.1.17
  • legacy-core
  • npm
  • Socket score

Version published
Weekly downloads
110K
decreased by-28.27%
Maintainers
3
Weekly downloads
 
Created

What is @remote-ui/core?

@remote-ui/core is a library that allows you to build user interfaces that can be rendered remotely. It is particularly useful for creating UI components that need to be rendered in a different environment from where they are defined, such as in a web worker or a different JavaScript context.

What are @remote-ui/core's main functionalities?

Creating Remote Components

This feature allows you to create remote components that can be rendered in a different environment. The `createRemoteComponent` function is used to define a new remote component.

const {createRemoteComponent} = require('@remote-ui/core');

const Button = createRemoteComponent('Button');

Rendering Remote Components

This feature allows you to render remote components in a specified environment. The `render` function is used to render the remote component into a DOM element.

const {render} = require('@remote-ui/core');

const root = document.getElementById('app');
render(<Button />, root);

Remote Component Props

This feature allows you to define properties for remote components. The `createRemoteComponent` function can take a second argument to specify the props that the component accepts.

const {createRemoteComponent} = require('@remote-ui/core');

const Button = createRemoteComponent('Button', {props: ['label']});

Other packages similar to @remote-ui/core

FAQs

Package last updated on 24 Jul 2023

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