useFPI Hook
useFPI Hook
Theme developers can use the useFPI
hook to effortlessly retrieve FPI in any nested component, streamlining API calls
Example Usage:
import { useFPI } from "fdk-core/utils";
function Home() {
const fpi = useFPI();
console.log({ fpi });
return (
<div className="home">
I am a home component
</div>
);
}