A React library provides Provider, Context API and hooks to support Snowflake Safe Apps integration.
npm install @snowflake-so/safe-apps-providerA React library provides Provider, Context API and hooks to support Snowflake Safe Apps integration.

``
npm install @snowflake-so/safe-apps-provider
yarn add @snowflake-so/safe-apps-provider
`
Note: The implemented application only works inner Snowflake Safe app.
Wrap your root component with SafeProvider and use the React hook useSafeContext to retrieve the data of the Snowflake Safe parent window.
`tsx
import React from "react";
import { useSafe, SafeProvider } from "@snowflake-so/safe-apps-provider";
const AppContent = () => {
const { safe } = useSafe();
return
const App = () => {
return (
);
};
export default App;
``
If you have any problem with using the SDK in your system, drop a question our Snowflake Discord #sdk to receive a support from our engineers.
If you find a bug or have any problem and idea while using the SDK, you can create an issue on SDK Github.
License
MIT