@netless/fastboard-react
v1.0.1
Published
React components of @netless/fastboard.
Downloads
765
Readme
@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