@zhltc/fastboard-react
v1.0.0-canary.24
Published
React components of @netless/fastboard.
Downloads
5
Readme
@netless/fastboard-react
The React wrapper of @zhltc/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