@dytesdk/react-ui-kit
v3.0.8
Published
Dyte's UI Kit to support easy UI development for React.
Readme
Table of Contents
Getting Started
There are separate UI Kit packages for VanillaJS and Angular. Check out the links to the packages below
First, you will need to install the ui-kit along with the react-web-core package:
npm i @dytesdk/react-ui-kit @dytesdk/react-web-coreThe react-web-core package is the package which handles all the low level logic required for a meeting by interating with our servers. Use it to create a meeting object, which you can pass along to the UI Kit components.
react-web-coreconsists of hooks written on top of web-core which make it easy to use web-core in react applications.
Usage
Use the useDyteClient() hook to initialize a client
function App() {
const [client, initClient] = useDyteClient();
useEffect(() => {
initClient({
authToken: '<auth-token>',
roomName: '<room-name>',
defaults: {
audio: true,
video: true,
},
});
}, []);
return <DyteMeeting meeting={client} />;
}About
react-ui-kit is created & maintained by Dyte, Inc. You can find us on Twitter - @dyte_io or write to us at dev [at] dyte.io.
The names and logos for Dyte are trademarks of Dyte, Inc.
We love open source software! See our other projects and our products.
