@netless/fastboard-react
TypeScript icon, indicating that this package has built-in type declarations

0.3.15 • Public • Published

@netless/fastboard-react

The React wrapper of @netless/fastboard-ui.

Usage

import React, { useEffect, useState } from "react";
import ReactDOM from "react-dom";
import { useFastboard, Fastboard } from "@netless/fastboard-react";

function App() {
  const app = useFastboard(() => ({
    sdkConfig: {
      appIdentifier: "whiteboard_app_id",
    },
    joinRoom: {
      uid: "unique_user_id",
      uuid: "room-uuid",
      roomToken: "NETLESSROOM_...",
    },
  }));

  return <Fastboard app={app} />;
}

ReactDOM.render(<App />, document.getElementById("app"));

License

MIT @ netless

/@netless/fastboard-react/

    Package Sidebar

    Install

    npm i @netless/fastboard-react

    Weekly Downloads

    59

    Version

    0.3.15

    License

    none

    Unpacked Size

    501 kB

    Total Files

    22

    Last publish

    Collaborators

    • vince-hz
    • alic_zhang
    • straybugs
    • moskize
    • netless-rick
    • yleaf
    • herewhite
    • cheerchen
    • l1shen
    • hyrious
    • huaguzheng