registerLicense()
Registers the yFiles license which is needed to use the useLayout hook or the useLayoutSupport hook which are based on yFiles for HTML.
function App() {
registerLicense(yFilesLicense)
const { runLayout } = useLayout()
return (
<ReactFlow></ReactFlow>
)
}
Parameters
Name | Description | Type |
---|---|---|
licenseKey | The license key to register | Record<string, unknown> |