🚀 DAY 2 OF LAUNCH WEEK: Announcing Socket Certified Patches: One-Click Fixes for Vulnerable Dependencies.Learn more →
Socket
Book a DemoInstallSign in
Socket

@trycourier/courier-react-17

Package Overview
Dependencies
Maintainers
5
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trycourier/courier-react-17

React 17 components for the Courier web UI

latest
Source
npmnpm
Version
8.2.2
Version published
Maintainers
5
Created
Source

@trycourier/courier-react-17

courier-react-17

Using React 18+? Use the @trycourier/courier-react package.

Not using React? Use the @trycourier/courier-ui-inbox package.

Installation

npm install @trycourier/courier-react-17

Usage

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.

Examples

Below are a few examples of the Courier Inbox. Visit the Courier documentation for more examples.

CourierInbox

Screenshot 2025-06-25 at 5 17 47 PM
import { 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 />;

}

CourierInboxPopupMenu

Screenshot 2025-06-25 at 5 21 53 PM
import { 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>
  );

}

Share feedback with Courier

Have an idea or feedback about our SDKs? Let us know!

Open an issue: Courier Web Issues

Keywords

courier

FAQs

Package last updated on 13 Nov 2025

Did you know?

Socket

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.

Install

Related posts