@sentre/embeded-view
TypeScript icon, indicating that this package has built-in type declarations

2.0.4 • Public • Published

Embeded View

With regard to projects that has built by themselves on seperate domains, they can be integrated onto Sentre Hub by Embeded View. To fully work on Sentre Hub, the application also needs to natively support @sentre/connector.

Installation

npm i @sentre/embeded-view

Usage

import EmbededView from '@sentre/embeded-view'

const YourSenhubDApp = () => {
  return (
    <EmbededView
      appId="<your-app-id>"
      src="<your-app-original-url>"
      title="<your-app-description>"
    />
  )
}

You can find an example for the integration in https://github.com/DescartesNetwork/miniroyale-iframe.

Package Sidebar

Install

npm i @sentre/embeded-view

Weekly Downloads

0

Version

2.0.4

License

MIT

Unpacked Size

6.16 kB

Total Files

8

Last publish

Collaborators

  • tphanson