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

@remote-ui/react

Package Overview
Dependencies
Maintainers
3
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@remote-ui/react

This library provides a custom React renderer that gives you the full power of React for your remote application, and provides an optional host layer that makes it easy for existing React apps to integrate a remote root. For a full overview of how `@remot

  • 3.0.4
  • npm
  • Socket score

Version published
Weekly downloads
152K
increased by4.48%
Maintainers
3
Weekly downloads
 
Created

What is @remote-ui/react?

@remote-ui/react is a library that allows developers to create and manage UI components remotely using React. It is particularly useful for building applications where the UI needs to be rendered in a different environment from where the logic is executed, such as in embedded apps or micro-frontends.

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

Remote Component Rendering

This feature allows you to create React components that can be rendered remotely. The code sample demonstrates how to create a remote button component that can be used in a React application.

import {createRemoteReactComponent} from '@remote-ui/react';

const RemoteButton = createRemoteReactComponent('Button');

function App() {
  return <RemoteButton onClick={() => alert('Clicked!')}>Click me</RemoteButton>;
}

Remote Context Management

This feature provides a way to manage context for remote components. The code sample shows how to set up a RemoteRoot with a RemoteReceiver to manage remote components' lifecycle and context.

import {RemoteRoot, RemoteReceiver} from '@remote-ui/react';

const receiver = new RemoteReceiver();

function App() {
  return (
    <RemoteRoot receiver={receiver}>
      {/* Remote components can be rendered here */}
    </RemoteRoot>
  );
}

Other packages similar to @remote-ui/react

FAQs

Package last updated on 07 Feb 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