useOneAuxilia()

The useOneAuxilia() hook provides access to the OneAuxilia object, giving you the ability to build alternatives to any OneAuxilia Component.

useOneAuxilia() returns

The useOneAuxilia() hook returns the OneAuxilia object, which includes all the methods and properties listed in the OneAuxilia reference.

How to use the useOneAuxilia() hook

home.tsx
import { useOneAuxilia } from "@oneauxilia/oneauxilia-react";

export default function Home() {
  const oneauxilia = useOneAuxilia();

  return <button onClick={() => oneauxilia.openSignIn({})}>Sign in</button>;
};

Last updated