[](https://www.npmjs.com/package/@gnosis.pm/safe-apps-react-sdk)

This SDK should provide a simple way to write a React.js Safe app
- Add npm package
``bash
yarn add @gnosis.pm/safe-apps-react-sdk
npm i @gnosis.pm/safe-apps-react-sdk
`
- Add SafeProviderloader
Safe provider accepts and options props
`js
// ... other imports
import SafeProvider from '@gnosis.pm/safe-apps-react-sdk';
ReactDOM.render(
document.getElementById('root'),
);
`
- Use Safe Apps SDK Hook
`js
// ... other imports
import { useSafeAppsSDK } from '@gnosis.pm/safe-apps-react-sdk';
const App = () => {
const { sdk, connected, safe } = useSafeAppsSDK();
return
$3
#### Send transactions
`js
import { BaseTransaction } from '@gnosis.pm/safe-apps-sdk'const txs: BaseTransaction[] = [
{
to: '0x31415629...',
value: '0',
data: '0xbaddad',
},
//...
];
// Returns a hash to identify the Safe transaction
const safeTxHash: string = await sdk.txs.send({ txs });
`#### Load Safe transaction information
`js
const safeTx: SafeTransaction = await sdk.txs.getBySafeTxHash(safeTxHash);
``#### More scenarios
For all available sdk methods, please refer to the safe-apps-sdk documentation