# Script
Use the `Script` component to add third-party scripts to your app. It automatically adds a nonce attribute from your [content security policy](https://shopify.dev/docs/custom-storefronts/hydrogen/content-security-policy).
```jsx
import {
Links,
LiveReload,
Meta,
Outlet,
Scripts,
ScrollRestoration,
} from '@remix-run/react';
import {useNonce, Script} from '@shopify/hydrogen';
export default function App() {
const nonce = useNonce();
return (
{/* Note you don't need to pass a nonce to the script component
because it's automatically added */}
);
}
```
```tsx
import {
Links,
LiveReload,
Meta,
Outlet,
Scripts,
ScrollRestoration,
} from '@remix-run/react';
import {useNonce, Script} from '@shopify/hydrogen';
export default function App() {
const nonce = useNonce();
return (
{/* Note you don't need to pass a nonce to the script component
because it's automatically added */}
);
}
```
## Props
## Related
- [createContentSecurityPolicy](https://shopify.dev/docs/api/hydrogen/2023-10/utilities/createcontentsecuritypolicy)
- [useNonce](https://shopify.dev/docs/api/hydrogen/2023-10/hooks/usenonce)