@wildix/xbees-connect-react
v1.2.19
Published
This library provides React components and hooks for integrated web applications
Downloads
142
Maintainers
Keywords
Readme
xbees-connect-react
Installation
Install the package in your project directory with:
yarn add @wildix/xbees-connect-react
This component has the following peer dependencies that you will need to install as well.
{
"peerDependencies": {
"@mui/material": "^5.14.16",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
}
Usage
import { useThemeEffect, useViewPortEffect } from '@wildix/xbees-connect-react';
const AppUi = () => {
const theme = useThemeEffect();
useViewPortEffect();
return (
<div className="container">
<ThemeProvider theme={theme}>
<CssBaseline />
<div />
</ThemeProvider>
</div>
);
};