diff --git a/src/hooks/UseMountEffect.tsx b/src/hooks/UseMountEffect.tsx new file mode 100644 index 00000000..cb6f7bf6 --- /dev/null +++ b/src/hooks/UseMountEffect.tsx @@ -0,0 +1,3 @@ +import { useEffect } from 'react'; + +export const UseMountEffect = (fun: Function) => useEffect(() => fun(), []); diff --git a/src/hooks/index.ts b/src/hooks/index.ts new file mode 100644 index 00000000..41928f94 --- /dev/null +++ b/src/hooks/index.ts @@ -0,0 +1,13 @@ +export * from './events'; +export * from './events/core'; +export * from './events/core/configuration'; +export * from './events/nitro'; +export * from './events/nitro/avatar'; +export * from './events/nitro/camera'; +export * from './events/nitro/communication'; +export * from './events/nitro/localization'; +export * from './events/nitro/room'; +export * from './events/nitro/session'; +export * from './events/ui'; +export * from './messages'; +export * from './UseMountEffect';