A React library for Solana account management and transaction handling.
Run:
yarn add @saberhq/sail react-query
You will need to first set up React Query.
Then:
import { SailProvider } from "@saberhq/sail";
import { QueryClient, QueryClientProvider } from "react-query";
const queryClient = new QueryClient();
const MyApp: React.FC = () => (
<QueryClientProvider client={queryClient}>
<SailProvider initialState={{ onTxSend, onSailError }}>
{/* stuff */}
</SailProvider>
</QueryClientProvider>
);