
Product
Announcing Socket Certified Patches: One-Click Fixes for Vulnerable Dependencies
A safer, faster way to eliminate vulnerabilities without updating dependencies
@trycourier/courier-react-17
Advanced tools
@trycourier/courier-react-17Using React 18+? Use the @trycourier/courier-react package.
Not using React? Use the @trycourier/courier-ui-inbox package.
npm install @trycourier/courier-react-17
Check out the Courier documentation for a full guide to Courier React.
If you’re coming from an earlier version of the Courier React SDK, check out the v8 migration guide for what’s changed, how to upgrade your app, and links to documentation for past versions of the React SDK.
Below are a few examples of the Courier Inbox. Visit the Courier documentation for more examples.
CourierInboximport { useEffect } from 'react';
import { CourierInbox, useCourier } from '@trycourier/courier-react-17';
export default function App() {
const courier = useCourier();
useEffect(() => {
// Generate a JWT for your user (do this on your backend server)
const jwt = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'; // Replace with actual JWT
// Authenticate the user with the inbox
courier.shared.signIn({
userId: $YOUR_USER_ID,
jwt: jwt,
});
}, []);
return <CourierInbox />;
}
CourierInboxPopupMenuimport { useEffect } from 'react';
import { CourierInbox, useCourier } from '@trycourier/courier-react-17';
export default function App() {
const courier = useCourier();
useEffect(() => {
// Generate a JWT for your user (do this on your backend server)
const jwt = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'; // Replace with actual JWT
// Authenticate the user with the inbox
courier.shared.signIn({
userId: $YOUR_USER_ID,
jwt: jwt,
});
}, []);
return (
<div style={{ padding: '24px' }}>
<CourierInboxPopupMenu />
</div>
);
}
Have an idea or feedback about our SDKs? Let us know!
Open an issue: Courier Web Issues
FAQs
React 17 components for the Courier web UI
We found that @trycourier/courier-react-17 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
A safer, faster way to eliminate vulnerabilities without updating dependencies

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.

Research
/Security News
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.