miro-websdk-react-hooks
Collection of React hooks to interact with Miro Platform WebSDK.
Use it!
$ npm install @mirohq/websdk-react-hooks
// or
$ yarn add @mirohq/websdk-react-hooks
Inject Miro instance
Wrap your components with MiroProvider and inject the global instance of Miro WebSDK.
import { MiroProvider } from "@mirohq/websdk-react-hooks";
const App: React.FC = ({ children }) => <MiroProvider miro={window.miro}>{children}</MiroProvider>;
Make sure you have a Miro application configured to use it:
Hooks
Built with
Contributing
Please refer to the CONTRIBUTING.md guide to get started.